From c71c685bbae99faf4a297e9d0b4fc1b1f1b88a0e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Mar 2019 00:16:03 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6d929e8d..4b84b9a0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1351,7 +1351,13 @@ SERVICE(){ NCMD="ssh root@${nip}" fi echo -en "${NM_SRVCOPTS[${2}]}ing on iDS-MySQL${nid} ($nip)... ${idsCL[Default]}" - $NCMD systemctl $2 $1 + if [ "$1" = "gitea" ] && [ "$2" = "restart" ]; then + $NCMD systemctl stop $1 + SET-PERMISSIONS gitea + $NCMD systemctl start $1 + else + $NCMD systemctl $2 $1 + fi if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then echo -e "${idsCL[Green]}OK${idsCL[Default]}" elif [ "$(${NCMD} systemctl is-active ${1})" = "active" ]; then