Update run.sh

This commit is contained in:
2024-11-29 18:44:45 -06:00
parent ff11afb136
commit c602b38157

4
run.sh
View File

@@ -10,8 +10,8 @@ source /opt/idssys/nodemgmt/conf/settings.conf
source /opt/idssys/nodemgmt/defaults.inc
# 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
if [ "${1}" == "update" ] || ([ "${1}" == "update" ] && [ "${2}" == "nodes" ]) || ([ "${1}" == "update-nodes" ] && [ "${3}" != "sync" ]); then
if [ "${1}" == "update-nodes" ] || [ "${2}" == "nodes" ]; then
echo -e "\n${idsCL[LightGreen]}Updating Node-Manager${idsCL[Default]}"
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
fi