Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1848,6 +1848,8 @@ 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
|
||||||
|
touch "${FOLDER}/status-check.running"
|
||||||
if [ "${2}" = "report" ]; then
|
if [ "${2}" = "report" ]; then
|
||||||
rm -f ${FOLDER}/status-check.lastrun
|
rm -f ${FOLDER}/status-check.lastrun
|
||||||
STATUS report > ${FOLDER}/status-check.lastrun
|
STATUS report > ${FOLDER}/status-check.lastrun
|
||||||
@@ -1858,6 +1860,8 @@ if [ ${action-x} ]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
STATUS ${2}
|
STATUS ${2}
|
||||||
|
fi
|
||||||
|
rm -f "${FOLDER}/status-check.running"
|
||||||
fi;;
|
fi;;
|
||||||
status-check) STATUS-CHECK ${2};;
|
status-check) STATUS-CHECK ${2};;
|
||||||
set-permissions) SET-PERMISSIONS ${2};;
|
set-permissions) SET-PERMISSIONS ${2};;
|
||||||
|
|||||||
Reference in New Issue
Block a user