Update nodemgmt-scripts.sh

This commit is contained in:
2021-06-27 15:16:39 -05:00
parent eddac00bff
commit 644dcbc2c0

View File

@@ -157,9 +157,7 @@ STATUS(){
var2=${NTYPE}_SERVICES_CHECK[@]
for srvc in "${!var2}"; do
NOGOCHK=true
if [ "${nip}" = "10.5.10.121" ] && [ ${srvc} = "gitea" ] && [ -f ${FOLDER}/10.5.10.121.down ]; then
NOGOCHK=false
elif [ "${nip}" = "10.5.10.122" ] && [ ${srvc} = "gitea" ] && [ ! -f ${FOLDER}/10.5.10.121.down ]; then
if [ "${nip}" = "10.5.10.122" ] && [ ${srvc} = "gitea" ] && [ ! -f ${FOLDER}/10.5.10.121.down ]; then
NOGOCHK=false
fi
if [ ${NOGOCHK} = true ]; then