Update nodemgmt-scripts.sh

This commit is contained in:
2022-06-11 22:40:32 -05:00
parent 6edca36127
commit 7091db9548

View File

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