From 4d3a9b6af36c39f5ed076b2d190701709dead911 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 26 Jun 2021 22:02:58 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f8e06844..52676de5 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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}