Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user