diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 587780f..c554c8e 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -10,7 +10,7 @@ error_exit() { # To opt out, set BACKUP_DISABLED to any value. if [ -n "$BACKUP_DISABLED" ]; then echo "Cool folks don't disable backups. I hope you know what you're doing." - exec postgres -c archive_mode=off + exec docker-entrypoint.sh else # Check that AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are set [ -z "$AWS_ACCESS_KEY_ID" ] && error_exit "AWS_ACCESS_KEY_ID must be set" @@ -22,7 +22,7 @@ else # Reconstruct full WALG_S3_PREFIX if BACKUP_PREFIX is set [ -n "$BACKUP_PREFIX" ] && WALG_S3_PREFIX="s3://bksp-backups/$BACKUP_PREFIX" - exec postgres \ + exec docker-entrypoint.sh \ -c archive_mode=always \ -c archive_timeout=1h \ -c archive_command='walg-push /var/lib/postgresql/data/%p' \