postgres-hstore: fix database initialization with custom username
This commit is contained in:
parent
d39cfd9b42
commit
0aee39af76
|
@ -6,7 +6,7 @@ set -e
|
||||||
#
|
#
|
||||||
# Running CREATE EXTENSION in both template1 and postgres can lead to
|
# Running CREATE EXTENSION in both template1 and postgres can lead to
|
||||||
# the extensions having different eid's.
|
# the extensions having different eid's.
|
||||||
psql --dbname template1 -U postgres <<EOSQL
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname template1 <<EOSQL
|
||||||
CREATE EXTENSION hstore;
|
CREATE EXTENSION hstore;
|
||||||
CREATE EXTENSION ltree;
|
CREATE EXTENSION ltree;
|
||||||
CREATE EXTENSION pg_trgm;
|
CREATE EXTENSION pg_trgm;
|
||||||
|
|
Loading…
Reference in New Issue