diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index 0f17c7aa5..f13e6e321 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -1500,26 +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! + ======================== - Congratulations - =============== + If this is the very first time xCAT has been installed, run the following + commands to set environment variables into your PATH: - The fact that you got this far is a strong indication that xCAT bas been - installed correctly. + 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 - Please notice if this is the first time you install xCAT. You need to do one - of the following. + xCAT has been updated! + ====================== - 1. Log out and then log in again, or - 2. run the following command to set the environment variables. - - for sh, - \`source /etc/profile.d/xcat.sh\` - or csh, - \`source /etc/profile.d/xcat.csh\` - EOF + EOF + fi ;; *) list_xcat_packages