Update nodemgmt-scripts.sh

This commit is contained in:
2021-10-01 22:17:23 -05:00
parent 77833cd9e5
commit cb6c219937

View File

@@ -157,7 +157,7 @@ STATUS(){
var2=${NTYPE}_SERVICES_CHECK[@]
for srvc in "${!var2}"; do
NOGOCHK=true;
if ${srvc} = "gitea" ]; then
if [ ${srvc} = "gitea" ]; then
if [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *10.5.10.120* ]]; then
NOGOCHK=false;
fi