Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1842,8 +1842,10 @@ if [ ${action-x} ]; then
|
||||
backup) BACKUP;;
|
||||
status)
|
||||
if [ -f "${FOLDER}/status-check.running" ]; then
|
||||
echo 'yes1'
|
||||
if [ $(`stat --format=%Y "${FOLDER}/status-check.running"`) -lt $((`date +%s` - 300)) ]; 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
|
||||
|
||||
Reference in New Issue
Block a user