Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-23 20:51:44 -06:00
parent 027e410c52
commit 06a73e4fc1

View File

@@ -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