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