Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-13 17:19:07 -05:00
parent 2be1892dc1
commit e8ebbd5cfd

View File

@@ -381,7 +381,12 @@ STATUS(){
########################
## REPLICATION CHECK
########################
if [ "${ST_ACTION}" = "" ] || [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "repl" ]; then
if [ "${ST_ACTION}" == "" ] || [ "${ST_ACTION}" == "report" ] || [ "${ST_ACTION}" == "repl" ]; then
if [ "${ST_ACTION}" == "repl" ]; then
echo -en "${idsCL[LightCyan]}Waiting for filesync
sleep 1m
fi
if [ "${CHECKFOLDERSYNC}" == true ]; then
if [ "${ST_ACTION}" != "check" ]; then
echo -e "${idsST[Bold]}"; DIVIDER
@@ -441,24 +446,20 @@ STATUS(){
else
spc=' '
fi
# echo "CHECK: ${NTYPE} - ${!PH} - ${REPL_CHECKS[${rcheck}]}"
# if [ "${rcheck}" = "nextcloud-data" ] || [ "${rcheck}" = "nextcloud-www" ]; then
# timeout=`date --date='2 minutes' +%s`
# else
timeout=`date --date='20 seconds' +%s`
# fi
echo -en " ${REPL_DESC[${rcheck}]}${spc}: "
timeout=`date --date='2 minutes' +%s`
# if [ "${rcheck}" == "www" ]; then
# timeout=`date --date='2 minutes' +%s`
# else
# timeout=`date --date='20 seconds' +%s`
# fi
else
# if [ "${rcheck}" = "nextcloud-data" ] OR [ "${rcheck}" = "nextcloud-www" ]; then
# timeout=`date --date='2 minutes' +%s`
# else
timeout=`date --date='1 minutes' +%s`
# fi
timeout=`date --date='2 minutes' +%s`
fi
checked=false
until [ "${checked}" = "" ]; do
if [ "${PH_CMD}" = "" ]; then