Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-11 21:44:38 -05:00
parent 0b7a4bc845
commit f85f67f827

View File

@@ -27,6 +27,7 @@ STATUS(){
declare -i cw; declare -i spc1; declare -i c declare -i cw; declare -i spc1; declare -i c
######################## ########################
if [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "repl" ] || [ "${ST_ACTION}" = "check" ] || [ "${ST_ACTION}" = "" ]; then if [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "repl" ] || [ "${ST_ACTION}" = "check" ] || [ "${ST_ACTION}" = "" ]; then
if [ ! -f ${FOLDER}/test.repl ]; then
if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "check" ]; then
echo -en "${idsCL[LightCyan]}Setting up status checks... ${idsCL[Default]}" echo -en "${idsCL[LightCyan]}Setting up status checks... ${idsCL[Default]}"
fi fi
@@ -59,6 +60,13 @@ STATUS(){
echo -e "${idsCL[Green]}Complete${idsCL[Default]}" echo -e "${idsCL[Green]}Complete${idsCL[Default]}"
echo echo
fi fi
CHECKFOLDERSYNC=false;
else
if [ "${ST_ACTION}" != "check" ]; then
echo -en "${idsCL[LightCyan]}Will verify folder syncs... ${idsCL[Default]}"
CHECKFOLDERSYNC=true;
fi
fi
fi fi
######################## ########################
if [ "${ST_ACTION}" = "" ] || [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "services" ] || [ "${ST_ACTION}" = "dockers" ] || [ "${ST_ACTION}" = "check" ]; then if [ "${ST_ACTION}" = "" ] || [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "services" ] || [ "${ST_ACTION}" = "dockers" ] || [ "${ST_ACTION}" = "check" ]; then
@@ -371,6 +379,7 @@ STATUS(){
## REPLICATION CHECK ## REPLICATION CHECK
######################## ########################
if [ "${ST_ACTION}" = "" ] || [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "repl" ]; then if [ "${ST_ACTION}" = "" ] || [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "repl" ]; then
if [ "${CHECKFOLDERSYNC}" == true ]; then
if [ "${ST_ACTION}" != "check" ]; then if [ "${ST_ACTION}" != "check" ]; then
echo -e "${idsST[Bold]}"; DIVIDER echo -e "${idsST[Bold]}"; DIVIDER
echo -e "${idsCL[Yellow]} Replication Status Between the Primary and Secondary Nodes${idsCL[Default]}" echo -e "${idsCL[Yellow]} Replication Status Between the Primary and Secondary Nodes${idsCL[Default]}"
@@ -529,6 +538,8 @@ STATUS(){
echo echo
fi fi
fi fi
fi
######################## ########################
## FREE SPACE CHECK ## FREE SPACE CHECK
######################## ########################