2015-12-26 13:39:22 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# This script is run daily (at 3am each night).
|
|
|
|
|
2016-02-13 16:51:06 +00:00
|
|
|
# Set character encoding flags to ensure that any non-ASCII
|
|
|
|
# characters don't cause problems. See setup/start.sh and
|
|
|
|
# the management daemon startup script.
|
|
|
|
export LANGUAGE=en_US.UTF-8
|
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export LC_TYPE=en_US.UTF-8
|
|
|
|
|
2015-12-26 13:39:22 +00:00
|
|
|
# Take a backup.
|
2016-01-02 22:00:51 +00:00
|
|
|
management/backup.py | management/email_administrator.py "Backup Status"
|
2015-12-26 13:39:22 +00:00
|
|
|
|
2015-10-10 22:03:55 +00:00
|
|
|
# Provision any new certificates for new domains or domains with expiring certificates.
|
|
|
|
management/ssl_certificates.py --headless | management/email_administrator.py "Error Provisioning TLS Certificate"
|
|
|
|
|
2015-12-26 13:39:22 +00:00
|
|
|
# Run status checks and email the administrator if anything changed.
|
2016-01-02 22:00:51 +00:00
|
|
|
management/status_checks.py --show-changes | management/email_administrator.py "Status Checks Change Notice"
|