Skip to content

Commit

Permalink
Update stanza reference
Browse files Browse the repository at this point in the history
  • Loading branch information
conbrad committed Nov 22, 2023
1 parent 7aae2c9 commit 322cca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openshift/patroni-postgis/docker/init_postgis
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if [[ (! -z "$APP_USER") && (! -z "$APP_PASSWORD") && (! -z "$APP_DATABASE") && (! -z "$NAME")]]; then
echo "Initializing archive mode for pgbackrest"
psql -c "alter system set archive_mode=on;"
psql -c "alter system set archive_command=pgbackrest --stanza=demo-cluster-1 archive-push '%p';"
psql -c "alter system set archive_command=pgbackrest --stanza=$NAME-cluster-1 archive-push '%p';"
echo "Loading PostGIS extensions into $APP_DATABASE"
psql "$1" -w -c "\c ${APP_DATABASE}" -c "CREATE EXTENSION IF NOT EXISTS postgis;"
echo "Restarting postgres to init config"
Expand Down

0 comments on commit 322cca4

Please sign in to comment.