mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
5033042b8c
Refactor by moving the email-the-admin code out of the status checks and into a new separate tool. This is why I suppressed non-error output of the backups last commit - so it doesn't send a daily email.
9 lines
330 B
Bash
Executable File
9 lines
330 B
Bash
Executable File
#!/bin/bash
|
|
# This script is run daily (at 3am each night).
|
|
|
|
# Take a backup.
|
|
management/backup.py | management/email_administrator.py "Backup Status"
|
|
|
|
# Run status checks and email the administrator if anything changed.
|
|
management/status_checks.py --show-changes | management/email_administrator.py "Status Checks Change Notice"
|