Update nodemgmt-scripts.sh

This commit is contained in:
2019-12-22 10:29:05 -06:00
parent 5f0a12f061
commit 9214638f03

View File

@@ -1652,19 +1652,7 @@ if [ ${action-x} ]; then
certrenew) CERTRENEW;;
delssl) DEL-SSL ${2};;
listcerts) LISTCERTS;;
checkcerts)
if [ "${2}" = "report" ]; then
rm -f ${FOLDER}/status-check.lastrun
#CHECK-CERTS report > ${FOLDER}/status-check.lastrun
if [ "${3}" = "email" ] && [ "${STATUS_CHECK_EMAIL}" != "" ]; then
STATUSLOG="$(cat ${FOLDER}/status-check.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@vzwpix.com
fi
else
CHECK-CERTS ${2}
fi;;
checkcerts) CHECK-CERTS ${2};;
nightlyrenew) NIGHTLYRENEW;;
delsite) DELSITE ${2} ${3} ${4} ${5};;
delsites) DELSITES;;
@@ -1672,7 +1660,18 @@ if [ ${action-x} ]; then
update) ;;
update-nodes) NODEUPDATE ${2};;
backup) BACKUP;;
status) STATUS ${2};;
status)
if [ "${2}" = "report" ]; then
rm -f ${FOLDER}/status-check.lastrun
STATUS report > ${FOLDER}/status-check.lastrun
if [ "${3}" = "email" ] && [ "${STATUS_CHECK_EMAIL}" != "" ]; then
STATUSLOG="$(cat ${FOLDER}/status-check.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@vzwpix.com
fi
else
STATUS ${2}
fi;;
status-check) STATUS-CHECK ${2};;
set-permissions) SET-PERMISSIONS ${2};;
service)