From ab3448ca9f2ce2af0cb7a76d7cadad15b8d3b3c1 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 2 Aug 2016 14:34:43 -0400 Subject: [PATCH 1/2] Change the summary message for go-xcat --- xCAT-server/share/xcat/tools/go-xcat | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index 0f17c7aa5..f3af5d556 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -1502,18 +1502,11 @@ case "${GO_XCAT_ACTION}" in while read -r ; do echo "${REPLY}" ; done <<-EOF + xCAT has been installed! + ======================== - Congratulations - =============== - - The fact that you got this far is a strong indication that xCAT bas been - installed correctly. - - Please notice if this is the first time you install xCAT. You need to do one - of the following. - - 1. Log out and then log in again, or - 2. run the following command to set the environment variables. + 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\` From 9b96ee24e6d8c0768c8dc40ff0f4265bd15c2822 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Fri, 5 Aug 2016 12:40:41 -0400 Subject: [PATCH 2/2] 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