Update nodemgmt-scripts.sh

This commit is contained in:
2019-03-04 00:16:03 -06:00
parent fde5d5e7b6
commit c71c685bba

View File

@@ -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