This commit is contained in:
2024-11-29 18:57:30 -06:00
parent 699c5035a4
commit 2f44630aa6
2 changed files with 8 additions and 3 deletions

View File

@@ -342,14 +342,14 @@ NODEUPDATES() {
start=`date +%s`
cw=40;
rm -f /tmp/.nodeupdate.*
# if [ "${1}" = "report" ]; then
if [ "${1}" = "report" ]; then
unset idsCL idsBG idsST
idsCL=('')
idsBG=('')
idsST=('')
# else
else
echo
# fi
fi
declare -i spc1; declare -i c
echo -e "${idsCL[LightGreen]}Updating All Nodes${idsCL[Default]}"
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"

5
run.sh
View File

@@ -9,6 +9,11 @@ source /opt/idssys/defaults/default.inc
source /opt/idssys/nodemgmt/conf/settings.conf
source /opt/idssys/nodemgmt/defaults.inc
unset idsCL idsBG idsST
idsCL=('')
idsBG=('')
idsST=('')
# if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]] && [ "${1}" != "status" ]; then
if [ "${1}" == "update" ] || ([ "${1}" == "update" ] && [ "${2}" == "nodes" ]) || ([ "${1}" == "update-nodes" ] && [ "${3}" != "sync" ]); then
if [ "${1}" == "update-nodes" ] || [ "${2}" == "nodes" ]; then