Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user