From 3bcfed8f2e06d8e957afe8a342dee3c5b935734c Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Fri, 2 Jun 2023 16:37:53 -0400 Subject: [PATCH] 20548: Emit the git commit in the deploy log. Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- tools/salt-install/installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/salt-install/installer.sh b/tools/salt-install/installer.sh index db5bffcd68..c86e9b02c3 100755 --- a/tools/salt-install/installer.sh +++ b/tools/salt-install/installer.sh @@ -120,8 +120,8 @@ deploynode() { SUDO=sudo fi $SUDO ./provision.sh --config ${CONFIG_FILE} ${ROLES} 2>&1 | tee $logfile - else - $SSH $DEPLOY_USER@$NODE "cd ${GITTARGET} && sudo ./provision.sh --config ${CONFIG_FILE} ${ROLES}" 2>&1 | tee $logfile + else + $SSH $DEPLOY_USER@$NODE "cd ${GITTARGET} && git log -n1 HEAD && sudo ./provision.sh --config ${CONFIG_FILE} ${ROLES}" 2>&1 | tee $logfile cleanup $NODE fi } -- 2.30.2