fixed cron
All checks were successful
Build Website / Build Dockerfile (push) Successful in 38s

This commit is contained in:
2026-03-04 12:20:34 -05:00
parent e94f9e7844
commit ea97a26d5c
2 changed files with 5 additions and 4 deletions

View File

@@ -2,10 +2,11 @@
# 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
echo "$BACKUP_CRON /usr/local/bin/backup >> /var/log/mongo-backup.log 2>&1" > /etc/cron.d/mongo-backup
echo "" >> /etc/cron.d/mongo-backup
chmod 0644 /etc/cron.d/mongo-backup
crontab /etc/cron.d/mongo-backup
cron
cron &
fi
# Execute original mongo entrypoint