Update nodemgmt-scripts.sh

This commit is contained in:
2023-03-19 17:31:48 -05:00
parent de0daf3a8c
commit 23620195ff

View File

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