Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-26 14:23:06 -05:00
parent ddcee47ea0
commit 068e1808fb

View File

@@ -339,12 +339,11 @@ STATUS(){
## REPLICATION CHECK
########################
########################
if [ "${ST_ACTION}" == "report" ] || [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "check" ] || [ "${ST_ACTION}" == "" ]; then
if [ ! -f ${FOLDER}/test.repl ]; then
touch ${FOLDER}/test.repl
if [ "${ST_ACTION}" != "check" ]; then
echo -en "${idsCL[LightCyan]}Setting up status checks... ${idsCL[Default]}"
echo -en "${idsCL[LightCyan]}Setting up replication checks for next status check ... ${idsCL[Default]}"
fi
#NHCMD="ssh root@${MYSQL_HOSTS[0]}"
#LBHCMD="ssh root@${LB_HOSTS[0]}"
@@ -379,11 +378,13 @@ STATUS(){
else
rm -Rf ${FOLDER}/test.repl
if [ "${ST_ACTION}" != "check" ]; then
echo -e "${idsCL[LightCyan]}Will verify folder syncs... ${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}Will verify folder replication this status check ... ${idsCL[Default]}"
CHECKFOLDERSYNC=true
fi
fi
########################
if [ "${CHECKFOLDERSYNC}" == true ]; then
if [ "${ST_ACTION}" != "check" ]; then
echo -e "${idsST[Bold]}"; DIVIDER