Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1435,6 +1435,9 @@ SERVICE(){
|
|||||||
fi
|
fi
|
||||||
# fi
|
# fi
|
||||||
nid=`expr $nid + 1`
|
nid=`expr $nid + 1`
|
||||||
|
if [ "${1}" = "gitea" ]; then
|
||||||
|
break
|
||||||
|
done
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -1785,14 +1788,15 @@ if [ ${action-x} ]; then
|
|||||||
status-check) STATUS-CHECK ${2};;
|
status-check) STATUS-CHECK ${2};;
|
||||||
set-permissions) SET-PERMISSIONS ${2};;
|
set-permissions) SET-PERMISSIONS ${2};;
|
||||||
service)
|
service)
|
||||||
if [ "$2" = "gitea" ] && [ "$3" = "start" ]; then
|
# if [ "$2" = "gitea" ] && [ "$3" = "start" ]; then
|
||||||
SET-PERMISSIONS gitea
|
# SET-PERMISSIONS gitea
|
||||||
SERVICE gitea start
|
# SERVICE gitea start
|
||||||
elif [ "$2" = "gitea" ] && [ "$3" = "restart" ]; then
|
# elif [ "$2" = "gitea" ] && [ "$3" = "restart" ]; then
|
||||||
SERVICE gitea stop
|
# SERVICE gitea stop
|
||||||
SET-PERMISSIONS gitea
|
# SET-PERMISSIONS gitea
|
||||||
SERVICE gitea start
|
# SERVICE gitea start
|
||||||
elif [ "$2" = "web" ]; then
|
# elif [ "$2" = "web" ]; then
|
||||||
|
if [ "$2" = "web" ]; then
|
||||||
SERVICE nginx ${3}
|
SERVICE nginx ${3}
|
||||||
SERVICE php5.6-fpm ${3}
|
SERVICE php5.6-fpm ${3}
|
||||||
SERVICE php7.2-fpm ${3}
|
SERVICE php7.2-fpm ${3}
|
||||||
|
|||||||
Reference in New Issue
Block a user