diff --git a/run.sh b/run.sh index 0297e8a4..7cd2cf03 100755 --- a/run.sh +++ b/run.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash # NodeMgmt Loader +action=$1 + source /opt/idssys/defaults/colors.inc source /opt/idssys/defaults/default.inc if [ ! -f /opt/idssys/settings/nodemgmt.conf ]; then @@ -11,7 +13,7 @@ fi source /opt/idssys/nodemgmt/defaults.inc if [ "$1" != "service" ] && [ "$1" != "status-check" ] && [ "$1" != "nightlyrenew" ]; then - if [ -z ${1+x} ] || "${1}" = "gui" ]; then + if [ ! -z ${action+x} ] || "${1}" = "gui" ]; then DISP_HEADER fi if [ "${1}" != "gui" ]; then