From d038ba16af2952f77cc89aedca06e35d6558b729 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 23 Jan 2023 21:03:42 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 1fe94994..bc0b223c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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