Update nodemgmt-scripts.sh
This commit is contained in:
1 parent
1a59252c17
commit
be49b9637e
1 file changed
+3
-1
+3
-1
@@ -1842,7 +1842,9 @@ if [ ${action-x} ]; then
|
||||
backup) BACKUP;;
|
||||
status)
|
||||
if [ -f "${FOLDER}/status-check.running" ]; then
|
||||
[ `stat --format=%Y $file` -gt $(( `date +%s` - 300 )) ] && rm -f "${FOLDER}/status-check.running"
|
||||
if [ `stat --format=%Y $file` -gt $(( `date +%s` - 300 )) ]; then
|
||||
rm -f "${FOLDER}/status-check.running"
|
||||
fi
|
||||
fi
|
||||
if [ ! -f "${FOLDER}/status-check.running" ]; then
|
||||
touch "${FOLDER}/status-check.running"
|
||||
|
||||
Reference in new issue
Block a user