diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 781d4deb..3b5535f4 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1435,6 +1435,9 @@ SERVICE(){ fi # fi nid=`expr $nid + 1` + if [ "${1}" = "gitea" ]; then + break + done done fi done @@ -1785,14 +1788,15 @@ if [ ${action-x} ]; then status-check) STATUS-CHECK ${2};; set-permissions) SET-PERMISSIONS ${2};; service) - 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 - elif [ "$2" = "web" ]; 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 + # elif [ "$2" = "web" ]; then + if [ "$2" = "web" ]; then SERVICE nginx ${3} SERVICE php5.6-fpm ${3} SERVICE php7.2-fpm ${3}