Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-23 21:03:42 -06:00
parent ca37f0dedf
commit d038ba16af

View File

@@ -2050,7 +2050,7 @@ SINGLE_SERVER_SERVICE_CHECK(){
if [[ ${local_ips} = *10.10.1.120* ]]; then
if [ -f /mnt/web-data/mounted ]; then
for stc in "${services_to_check[@]}"; do
if [ "$(systemctl is-active stc).service" != "active" ]; then
if [ "$(systemctl is-active ${stc}).service" != "active" ]; then
[ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.socket pdnsadmin.service"
for nip in "${WEB_HOSTS[@]}"; do
if [[ "${local_ip}" != *"${nip}"* ]]; then