update
This commit is contained in:
@@ -1222,15 +1222,22 @@ if [ ${action-x} ]; then
|
||||
delsites) DELSITES;;
|
||||
newsite) NEWSITE ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22} ${23} ${24} ${25};;
|
||||
update) ;;
|
||||
update-nodes) NODEUPDATE ${2};;
|
||||
update-nodes)
|
||||
if [ "${2}" == "report" ]; then
|
||||
rm -f ${LOGFOLDER}/update-nodes.lastrun
|
||||
NODEUPDATE ${2} > ${LOGFOLDER}/update-nodes.lastrun
|
||||
else
|
||||
NODEUPDATE ${2}
|
||||
fi
|
||||
;;
|
||||
update-dyndns) UPDATE_DYNDNS ${2};;
|
||||
backup) BACKUP;;
|
||||
downlist)
|
||||
if [ "${2}" = "report" ]; then
|
||||
if [ "$(find ${FOLDER} -name '*.down')" != "" ]; then
|
||||
rm -f ${FOLDER}/status-downlist.lastrun
|
||||
DOWNLIST report >> ${FOLDER}/status-downlist.lastrun
|
||||
STATUSLOG="$(cat ${FOLDER}/status-downlist.lastrun)"
|
||||
rm -f ${LOGFOLDER}/status-downlist.lastrun
|
||||
DOWNLIST report >> ${LOGFOLDER}/status-downlist.lastrun
|
||||
STATUSLOG="$(cat ${LOGFOLDER}/status-downlist.lastrun)"
|
||||
SENDNOTICE "Downlist Report" "Downlist Report\n${STATUSLOG}"
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user