Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1457,7 +1457,7 @@ SERVICE(){
|
||||
fi
|
||||
|
||||
NOGOCHK=true;
|
||||
if [ "${1}" == "gitea" ]; then
|
||||
if [ "${1}" == "gitea" ] || [ "${1}" == "powerdns-admin" ]; then
|
||||
if [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *10.10.1.120* ]]; then
|
||||
NOGOCHK=false;
|
||||
fi
|
||||
@@ -1869,13 +1869,13 @@ 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
|
||||
if {[ "$2" = "gitea" ] || [ "$2" = "powerdns-admin" ]} && [ "$3" = "start" ]; then
|
||||
SET-PERMISSIONS ${2}
|
||||
SERVICE ${2} start
|
||||
elif [ "$2" = "gitea" ] && [ "$3" = "restart" ]; then
|
||||
SERVICE gitea stop
|
||||
SET-PERMISSIONS gitea
|
||||
SERVICE gitea start
|
||||
SERVICE ${2} stop
|
||||
SET-PERMISSIONS ${2}
|
||||
SERVICE ${2} start
|
||||
elif [ "$2" = "web" ]; then
|
||||
SERVICE php5.6-fpm ${3}
|
||||
SERVICE php7.2-fpm ${3}
|
||||
|
||||
Reference in New Issue
Block a user