Commit d703b0a2 authored by BuildTools's avatar BuildTools

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

parent 2e3796c4
...@@ -31,13 +31,12 @@ ln -s $(pwd)/conf/management-initscript /etc/init.d/mailinabox ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment