From 9b96ee24e6d8c0768c8dc40ff0f4265bd15c2822 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Fri, 5 Aug 2016 12:40:41 -0400 Subject: [PATCH] Display a different summary message on install vs update --- xCAT-server/share/xcat/tools/go-xcat | 30 ++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index f3af5d556..f13e6e321 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -1500,19 +1500,29 @@ case "${GO_XCAT_ACTION}" in exit "${RET}" fi - while read -r ; do echo "${REPLY}" ; done <<-EOF + if [ ${GO_XCAT_ACTION} == 'install' ]; then + # only print out this message on install + while read -r ; do echo "${REPLY}" ; done <<-EOF - xCAT has been installed! - ======================== + xCAT has been installed! + ======================== - If this is the very first time xCAT has been installed, run the following - commands to set environment variables into your PATH: + If this is the very first time xCAT has been installed, run the following + commands to set environment variables into your PATH: - for sh, - \`source /etc/profile.d/xcat.sh\` - or csh, - \`source /etc/profile.d/xcat.csh\` - EOF + for sh, + \`source /etc/profile.d/xcat.sh\` + or csh, + \`source /etc/profile.d/xcat.csh\` + EOF + else + while read -r ; do echo "${REPLY}" ; done <<-EOF + + xCAT has been updated! + ====================== + + EOF + fi ;; *) list_xcat_packages