Update nodemgmt-scripts.sh
This commit is contained in:
@@ -157,9 +157,9 @@ STATUS(){
|
||||
var2=${NTYPE}_SERVICES_CHECK[@]
|
||||
for srvc in "${!var2}"; do
|
||||
NOGOCHK=true
|
||||
if [ "${nip}" = "10.5.10.122xxx" ] && [ ${srvc} = "gitea" ]; then
|
||||
NOGOCHK=false
|
||||
fi
|
||||
# if [ "${nip}" = "10.5.10.122" ] && [ ${srvc} = "gitea" ]; then
|
||||
# NOGOCHK=false
|
||||
# fi
|
||||
if [ ${NOGOCHK} = true ]; then
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
c=0; cw=22; spc=''
|
||||
@@ -1798,14 +1798,14 @@ 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}
|
||||
|
||||
Reference in New Issue
Block a user