Init
Some checks failed
Build Website / Build Dockerfile (push) Failing after 4m44s

This commit is contained in:
2026-03-04 11:27:27 -05:00
parent 7182d9ee45
commit e94f9e7844
6 changed files with 129 additions and 96 deletions

12
entrypoint.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Setup cron job if BACKUP_CRON is set
if [ -n "$BACKUP_CRON" ]; then
echo "$BACKUP_CRON /usr/local/bin/backup.sh >> /var/log/mongo-backup.log 2>&1" > /etc/cron.d/mongo-backup
chmod 0644 /etc/cron.d/mongo-backup
crontab /etc/cron.d/mongo-backup
cron
fi
# Execute original mongo entrypoint
exec /usr/local/bin/docker-entrypoint.sh "$@"