diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 7bddb19f..d41906ed 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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