Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1843,7 +1843,7 @@ if [ ${action-x} ]; then
|
|||||||
status)
|
status)
|
||||||
if [ -f "${FOLDER}/status-check.running" ]; then
|
if [ -f "${FOLDER}/status-check.running" ]; then
|
||||||
echo 'yes1'
|
echo 'yes1'
|
||||||
if [ `stat --format=%Y "${FOLDER}/status-check.running"` -gt $(( `date +%s` - 300 )) ]; then
|
if [ $(`stat --format=%Y "${FOLDER}/status-check.running"`) -lt $((`date +%s` - 300)) ]; then
|
||||||
echo 'yes2'
|
echo 'yes2'
|
||||||
rm -f "${FOLDER}/status-check.running"
|
rm -f "${FOLDER}/status-check.running"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user