diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 7243c7ea..e6e5f092 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2048,7 +2048,7 @@ SINGLE_SERVER_SERVICE_CHECK(){ if [ -f /mnt/web-data/mounted ]; then if [ "$(systemctl is-active gitea)" != "active" ]; then for nip in "${WEB_HOSTS[@]}"; do - if [[ ${local_ip} != "${nip}" ]]; then + if [[ "${local_ip}" != *"${nip}"* ]]; then echo "stopping gitea service on ${nip}" ssh root@${nip} /bin/systemctl stop gitea fi @@ -2057,7 +2057,7 @@ SINGLE_SERVER_SERVICE_CHECK(){ fi if [ "$(systemctl is-active pdnsadmin.service)" != "active" ]; then for nip in "${WEB_HOSTS[@]}"; do - if [[ ${local_ip} != "${nip}" ]]; then + if [[ "${local_ip}" != *"${nip}"* ]]; then echo "stopping pdnsadmin service on ${nip}" ssh root@${nip} /bin/systemctl stop pdnsadmin.service pdnsadmin.socket fi