Skip to content

Commit

Permalink
fix: broken bring-up sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
imcatwhocode committed Dec 7, 2024
1 parent 5171158 commit e0d86f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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' \
Expand Down

0 comments on commit e0d86f1

Please sign in to comment.