Update nodemgmt-scripts.sh

This commit is contained in:
2019-04-01 09:07:59 -05:00
parent 92ed76434e
commit d01b3c2d20

View File

@@ -1504,7 +1504,10 @@ if [ ${action-x} ]; then
status-check) STATUS-CHECK ${2};;
set-permissions) SET-PERMISSIONS ${2};;
service)
if [ "$2" = "gitea" ] && [ "$3" = "restart" ]; then
if [ "$2" = "gitea" ] && [ "$3" = "start" ]; then
SET-PERMISSIONS gitea
SERVICE gitea start
elif [ "$2" = "gitea" ] && [ "$3" = "restart" ]; then
SERVICE gitea stop
SET-PERMISSIONS gitea
SERVICE gitea start