Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1841,6 +1841,9 @@ if [ ${action-x} ]; then
|
|||||||
update-dyndns) UPDATE_DYNDNS ${2};;
|
update-dyndns) UPDATE_DYNDNS ${2};;
|
||||||
backup) BACKUP;;
|
backup) BACKUP;;
|
||||||
status)
|
status)
|
||||||
|
if [ -f "${FOLDER}/status-check.running" ]; then
|
||||||
|
[ `stat --format=%Y $file` -gt $(( `date +%s` - 300 )) ] && rm -f "${FOLDER}/status-check.running"
|
||||||
|
fi
|
||||||
if [ ! -f "${FOLDER}/status-check.running" ]; then
|
if [ ! -f "${FOLDER}/status-check.running" ]; then
|
||||||
touch "${FOLDER}/status-check.running"
|
touch "${FOLDER}/status-check.running"
|
||||||
if [ "${2}" = "report" ]; then
|
if [ "${2}" = "report" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user