From cc912d7b6493ab85884e3b5c057eef9f67bdd4b0 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Mon, 15 Aug 2022 09:25:19 +0200 Subject: [PATCH] Delete existing crontab before appending entries per conf.d (#140) --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index cb2c503..bea2dad 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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}"