diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 45d08d75..b1e7c937 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -156,7 +156,11 @@ STATUS(){ fi var2=${NTYPE}_SERVICES_CHECK[@] for srvc in "${!var2}"; do - if [ "${NIP}" != "10.5.10.122" ] && [ ${srvc} != "gitea" ]; then + NOGOCHK=true + if [ "${NIP}" == "10.5.10.122" ] && [ ${srvc} == "gitea" ]; then + NOGOCHK=false + fi + if [ ${NOGOCHK} == true ]; then if [ "${ST_ACTION}" != "check" ]; then c=0; cw=22; spc='' spc1=${cw}-${#NM_SERVICES[${srvc}]}