From 599b7f3f741fd8da998e02c2d5109841fb320411 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Mon, 15 Aug 2022 15:00:58 +0200 Subject: [PATCH] Use crontab command to recreate empty tab file (#141) --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index bea2dad..edbf6c9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,7 +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 + crontab -r && crontab /dev/null for file in /etc/dockervolumebackup/conf.d/*; do source $file BACKUP_CRON_EXPRESSION="${BACKUP_CRON_EXPRESSION:-@daily}"