From 09e6e4bb056c975c9274acfb11108dacf33e1755 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 27 Jun 2022 13:01:26 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9b00aa90..729a9430 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1869,10 +1869,10 @@ if [ ${action-x} ]; then status-check) STATUS-CHECK ${2};; set-permissions) SET-PERMISSIONS ${2};; service) - if [[ "$2" = "gitea" ] || [ "$2" = "powerdns-admin" ]] && [ "$3" = "start" ]; then + if [[ ( "$2" = "gitea" ) || ( "$2" = "powerdns-admin" ) ]] && [ "$3" = "start" ]; then SET-PERMISSIONS ${2} SERVICE ${2} start - elif [[ "$2" = "gitea" ] || [ "$2" = "powerdns-admin" ]] && [ "$3" = "restart" ]; then + elif [[ ( "$2" = "gitea" ) || ( "$2" = "powerdns-admin" ) ]] && [ "$3" = "restart" ]; then SERVICE ${2} stop SET-PERMISSIONS ${2} SERVICE ${2} start