Update nodemgmt-scripts.sh

This commit is contained in:
2022-06-11 22:36:04 -05:00
parent d1657e812f
commit 20f13d83c6

View File

@@ -1842,7 +1842,15 @@ if [ ${action-x} ]; then
backup) BACKUP;;
status)
if [ -f "${FOLDER}/status-check.running" ]; then
[ `stat --format=%Y "${FOLDER}/status-check.running"` -gt $(( `date +%s` - 300 )) ] && rm -f "${FOLDER}/status-check.running"
echo 'yes1'
if [ `stat --format=%Y "${FOLDER}/status-check.running"` -gt $(( `date +%s` - 300 )) ]; then
echo 'yes2'
rm -f "${FOLDER}/status-check.running"
else
echo 'no2'
fi
else
echo 'no1'
fi
if [ ! -f "${FOLDER}/status-check.running" ]; then
touch "${FOLDER}/status-check.running"