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