From 06a73e4fc12a855d288384e84664d5788fcd454c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 23 Jan 2023 20:51:44 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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