Update nodemgmt-scripts.sh
This commit is contained in:
@@ -2383,7 +2383,16 @@ if [ ${action-x} ]; then
|
||||
update-nodes) NODEUPDATE ${2};;
|
||||
update-dyndns) UPDATE_DYNDNS ${2};;
|
||||
backup) BACKUP;;
|
||||
downlist) DOWNLIST ${2};;
|
||||
downlist)
|
||||
if [ "${2}" = "report" ]; then
|
||||
DOWNLIST report >> ${FOLDER}/status-downlist.lastrun
|
||||
STATUSLOG="$(cat ${FOLDER}/status-downlist.lastrun)"
|
||||
echo "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" david@schroedercity.com
|
||||
echo "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" 9208839613@mms.att.net
|
||||
else
|
||||
DOWNLIST ${2};;
|
||||
fi
|
||||
|
||||
status)
|
||||
if [ -f "${FOLDER}/status-check.running" ]; then
|
||||
fd=`stat --format=%Y "${FOLDER}/status-check.running"`
|
||||
|
||||
Reference in New Issue
Block a user