1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

change from /etc/cron.daily to /etc/cron.d

This commit is contained in:
BuildTools 2015-11-06 07:47:40 -05:00
parent 2e3796c4f7
commit d703b0a2a1

View File

@ -31,13 +31,12 @@ ln -s $(pwd)/conf/management-initscript /etc/init.d/mailinabox
hide_output update-rc.d mailinabox defaults
# Perform a daily backup.
cat > /etc/cron.daily/mailinabox-backup << EOF;
#!/bin/bash
# Mail-in-a-Box --- Do not edit / will be overwritten on update.
# Perform a backup.
$(pwd)/management/backup.py
cat > /etc/cron.d/mailinabox-backup << EOF;
# /etc/cron.d/mailinabox-backup: crontab fragment to run maininabox-backup
# This executes mailinabox-backup at 3am.
0 3 * * * root $(pwd)/management/backup.py
EOF
chmod +x /etc/cron.daily/mailinabox-backup
# Perform daily status checks. Compare each day to the previous
# for changes and mail the changes to the administrator.