Update nodemgmt-scripts.sh
This commit is contained in:
@@ -167,6 +167,8 @@ STATUS(){
|
|||||||
SERVICE gitea stop q
|
SERVICE gitea stop q
|
||||||
SET-PERMISSIONS gitea q
|
SET-PERMISSIONS gitea q
|
||||||
SERVICE gitea start q
|
SERVICE gitea start q
|
||||||
|
fi
|
||||||
|
if [ "$(${NCMD} systemctl is-active ${srvc})" != "active" ]; then
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
echo -e "${idsCL[Red]}Not Running - could not fix${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Not Running - could not fix${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
@@ -1287,8 +1289,11 @@ SERVICE(){
|
|||||||
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -en "${idsCL[LightYellow]}Waiting for nginx config replication across the nodes... ${idsCL[Default]}"
|
|
||||||
if [ "${1}" = "nginx" ]; then
|
if [ "${1}" = "nginx" ]; then
|
||||||
|
if [ "${3}" != "q" ]; then
|
||||||
|
echo -en "${idsCL[LightYellow]}Waiting for nginx config replication across the nodes... ${idsCL[Default]}"
|
||||||
|
fi
|
||||||
if [ "${2}" = "restart" ] || [ "${2}" = "reload" ]; then
|
if [ "${2}" = "restart" ] || [ "${2}" = "reload" ]; then
|
||||||
PH_CMD="ssh root@${WEB_HOSTS[0]}"
|
PH_CMD="ssh root@${WEB_HOSTS[0]}"
|
||||||
${PH_CMD} rm -f /etc/nginx/test.repl
|
${PH_CMD} rm -f /etc/nginx/test.repl
|
||||||
@@ -1306,8 +1311,10 @@ SERVICE(){
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo -e "${idsCL[Green]}Completed${idsCL[Default]}"
|
if [ "${3}" != "q" ]; then
|
||||||
echo
|
echo -e "${idsCL[Green]}Completed${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
for NTYPE in "${NODE_TYPES[@]}"; do
|
for NTYPE in "${NODE_TYPES[@]}"; do
|
||||||
var1=${NTYPE}SERVICES_CHECK
|
var1=${NTYPE}SERVICES_CHECK
|
||||||
@@ -1343,7 +1350,7 @@ SERVICE(){
|
|||||||
echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"
|
echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
elif [ "${3}" != "q" ]; then
|
||||||
echo -e "${idsCL[Red]}Node is Down${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Node is Down${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
# fi
|
# fi
|
||||||
|
|||||||
Reference in New Issue
Block a user