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 [ -f /mnt/web-data/mounted ]; then
|
||||||
if [ "$(systemctl is-active gitea)" != "active" ]; then
|
if [ "$(systemctl is-active gitea)" != "active" ]; then
|
||||||
for nip in "${WEB_HOSTS[@]}"; do
|
for nip in "${WEB_HOSTS[@]}"; do
|
||||||
if [[ ${local_ip} != "${nip}" ]]; then
|
if [[ "${local_ip}" != *"${nip}"* ]]; then
|
||||||
echo "stopping gitea service on ${nip}"
|
echo "stopping gitea service on ${nip}"
|
||||||
ssh root@${nip} /bin/systemctl stop gitea
|
ssh root@${nip} /bin/systemctl stop gitea
|
||||||
fi
|
fi
|
||||||
@@ -2057,7 +2057,7 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
|||||||
fi
|
fi
|
||||||
if [ "$(systemctl is-active pdnsadmin.service)" != "active" ]; then
|
if [ "$(systemctl is-active pdnsadmin.service)" != "active" ]; then
|
||||||
for nip in "${WEB_HOSTS[@]}"; do
|
for nip in "${WEB_HOSTS[@]}"; do
|
||||||
if [[ ${local_ip} != "${nip}" ]]; then
|
if [[ "${local_ip}" != *"${nip}"* ]]; then
|
||||||
echo "stopping pdnsadmin service on ${nip}"
|
echo "stopping pdnsadmin service on ${nip}"
|
||||||
ssh root@${nip} /bin/systemctl stop pdnsadmin.service pdnsadmin.socket
|
ssh root@${nip} /bin/systemctl stop pdnsadmin.service pdnsadmin.socket
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user