mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
change from /etc/cron.daily to /etc/cron.d
This commit is contained in:
parent
2e3796c4f7
commit
d703b0a2a1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user