Update nodemgmt-scripts.sh
This commit is contained in:
@@ -381,7 +381,12 @@ 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 [ "${ST_ACTION}" == "repl" ]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Waiting for filesync
|
||||||
|
sleep 1m
|
||||||
|
|
||||||
|
fi
|
||||||
if [ "${CHECKFOLDERSYNC}" == true ]; 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
|
||||||
@@ -441,24 +446,20 @@ STATUS(){
|
|||||||
else
|
else
|
||||||
spc=' '
|
spc=' '
|
||||||
fi
|
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}: "
|
echo -en " ${REPL_DESC[${rcheck}]}${spc}: "
|
||||||
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`
|
||||||
|
|
||||||
|
# if [ "${rcheck}" == "www" ]; then
|
||||||
|
# timeout=`date --date='2 minutes' +%s`
|
||||||
|
# else
|
||||||
|
# timeout=`date --date='20 seconds' +%s`
|
||||||
|
# fi
|
||||||
|
|
||||||
|
else
|
||||||
|
timeout=`date --date='2 minutes' +%s`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
checked=false
|
checked=false
|
||||||
until [ "${checked}" = "" ]; do
|
until [ "${checked}" = "" ]; do
|
||||||
if [ "${PH_CMD}" = "" ]; then
|
if [ "${PH_CMD}" = "" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user