Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
d703b0a2
Commit
d703b0a2
authored
Nov 06, 2015
by
BuildTools
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change from /etc/cron.daily to /etc/cron.d
parent
2e3796c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
management.sh
setup/management.sh
+5
-6
No files found.
setup/management.sh
View file @
d703b0a2
...
...
@@ -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.d
aily
/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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment