mirror of
https://github.com/offen/docker-volume-backup.git
synced 2025-10-06 13:15:52 +08:00
Delete existing crontab before appending entries per conf.d (#140)
This commit is contained in:
parent
26c8ba971f
commit
cc912d7b64
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ if [ ! -d "/etc/dockervolumebackup/conf.d" ]; then
|
|||
else
|
||||
echo "/etc/dockervolumebackup/conf.d was found, using configuration files from this directory."
|
||||
|
||||
crontab -r && touch /etc/crontabs/root
|
||||
for file in /etc/dockervolumebackup/conf.d/*; do
|
||||
source $file
|
||||
BACKUP_CRON_EXPRESSION="${BACKUP_CRON_EXPRESSION:-@daily}"
|
||||
|
|
Loading…
Add table
Reference in a new issue