From 4b1639e789424e519d05c679b4662b41cc5de5e9 Mon Sep 17 00:00:00 2001 From: nyne Date: Sun, 23 Nov 2025 20:18:19 +0800 Subject: [PATCH] fix: remove initial backup execution from entrypoint script --- backup-entrypoint.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backup-entrypoint.sh b/backup-entrypoint.sh index 0200281..feaa8e6 100644 --- a/backup-entrypoint.sh +++ b/backup-entrypoint.sh @@ -30,10 +30,6 @@ if [ -z "${S3_BUCKET}" ] || [ -z "${S3_ACCESS_KEY}" ] || [ -z "${S3_SECRET_KEY}" exit 1 fi -# Run initial backup -log "Running initial backup..." -/usr/local/bin/backup.sh - # Create crontab echo "${BACKUP_SCHEDULE} /bin/bash /usr/local/bin/backup.sh >> /var/log/backup.log 2>&1" > /tmp/crontab @@ -41,4 +37,4 @@ log "Starting scheduled backups with supercronic..." log "Logs will be written to /var/log/backup.log" # Run supercronic with the crontab -exec supercronic /tmp/crontab +supercronic /tmp/crontab