mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-26 02:57:04 +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
|
hide_output update-rc.d mailinabox defaults
|
||||||
|
|
||||||
# Perform a daily backup.
|
# Perform a daily backup.
|
||||||
cat > /etc/cron.daily/mailinabox-backup << EOF;
|
cat > /etc/cron.d/mailinabox-backup << EOF;
|
||||||
#!/bin/bash
|
# /etc/cron.d/mailinabox-backup: crontab fragment to run maininabox-backup
|
||||||
# Mail-in-a-Box --- Do not edit / will be overwritten on update.
|
# This executes mailinabox-backup at 3am.
|
||||||
# Perform a backup.
|
|
||||||
$(pwd)/management/backup.py
|
0 3 * * * root $(pwd)/management/backup.py
|
||||||
EOF
|
EOF
|
||||||
chmod +x /etc/cron.daily/mailinabox-backup
|
|
||||||
|
|
||||||
# Perform daily status checks. Compare each day to the previous
|
# Perform daily status checks. Compare each day to the previous
|
||||||
# for changes and mail the changes to the administrator.
|
# for changes and mail the changes to the administrator.
|
||||||
|
Loading…
Reference in New Issue
Block a user