Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-23 21:02:47 -06:00
parent 7fddb8ef04
commit ca37f0dedf

View File

@@ -2061,26 +2061,6 @@ SINGLE_SERVER_SERVICE_CHECK(){
/bin/systemctl start gitea &
fi
done
if [ "$(systemctl is-active gitea)" != "active" ]; then
for nip in "${WEB_HOSTS[@]}"; do
if [[ "${local_ip}" != *"${nip}"* ]]; then
echo "stopping gitea service on ${nip}"
ssh root@${nip} /bin/systemctl stop gitea
fi
done
/bin/systemctl start gitea &
fi
if [ "$(systemctl is-active pdnsadmin.service)" != "active" ]; then
for nip in "${WEB_HOSTS[@]}"; do
if [[ "${local_ip}" != *"${nip}"* ]]; then
echo "'${local_ip}' - '${nip}'"
echo "stopping pdnsadmin service on ${nip}"
#ssh root@${nip} /bin/systemctl stop pdnsadmin.service pdnsadmin.socket
fi
done
#/bin/systemctl start pdnsadmin.service pdnsadmin.socket &
fi
fi
else