Skip to content

Commit

Permalink
Prevent addition of multiple cron entries on bitwarden container restart
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperE84 committed Jul 15, 2021
1 parent f3f8a7b commit 7910ed9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ services:
sh -c 'if [ -n "$BACKUP" ];
then
apk --update --no-cache add sqlite
ln -sf /proc/1/fd/1 /var/log/backup.log &&
ln -sf /proc/1/fd/1 /var/log/backup.log &&
sed -i "/ash .backup.sh /d" /etc/crontabs/root &&
echo "$BACKUP_SCHEDULE ash /backup.sh $BACKUP" >> /etc/crontabs/root &&
crond -d 8;
fi &&
Expand Down

0 comments on commit 7910ed9

Please sign in to comment.