Update nodemgmt-scripts.sh

This commit is contained in:
2024-11-29 18:56:08 -06:00
parent 59cc506aa7
commit 699c5035a4

View File

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