From a714c5c23564350b3e427378290e9a680fe8e3ca Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 27 Jun 2022 12:58:39 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5c59a270..ae86708b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1457,7 +1457,7 @@ SERVICE(){ fi NOGOCHK=true; - if [ "${1}" == "gitea" ]; then + if [ "${1}" == "gitea" ] || [ "${1}" == "powerdns-admin" ]; then if [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *10.10.1.120* ]]; then NOGOCHK=false; fi @@ -1869,13 +1869,13 @@ if [ ${action-x} ]; then status-check) STATUS-CHECK ${2};; set-permissions) SET-PERMISSIONS ${2};; service) - if [ "$2" = "gitea" ] && [ "$3" = "start" ]; then - SET-PERMISSIONS gitea - SERVICE gitea start + if {[ "$2" = "gitea" ] || [ "$2" = "powerdns-admin" ]} && [ "$3" = "start" ]; then + SET-PERMISSIONS ${2} + SERVICE ${2} start elif [ "$2" = "gitea" ] && [ "$3" = "restart" ]; then - SERVICE gitea stop - SET-PERMISSIONS gitea - SERVICE gitea start + SERVICE ${2} stop + SET-PERMISSIONS ${2} + SERVICE ${2} start elif [ "$2" = "web" ]; then SERVICE php5.6-fpm ${3} SERVICE php7.2-fpm ${3}