Skip to content

Commit

Permalink
Merge pull request #104 from bacongobbler/94-fix-recovery-errors
Browse files Browse the repository at this point in the history
fix(rootfs): create new recovery baseline after restore
  • Loading branch information
Matthew Fisher committed Jun 7, 2016
2 parents f462a75 + db4cd9d commit 17a4041
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rootfs/docker-entrypoint-initdb.d/003_restore_from_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ EOF
-o "-c listen_addresses=''" \
-t 1200 \
-w start
else
echo "No backups found. Performing an initial backup..."
gosu postgres envdir "$WALE_ENVDIR" wal-e backup-push "$PGDATA"
fi

echo "Performing an initial backup..."
gosu postgres envdir "$WALE_ENVDIR" wal-e backup-push "$PGDATA"

# ensure $PGDATA has the right permissions
chown -R postgres:postgres "$PGDATA"
chmod 0700 "$PGDATA"

0 comments on commit 17a4041

Please sign in to comment.