summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2019-05-12 15:58:49 +0200
committerPiotr Dobrowolski <admin@tastycode.pl>2019-05-12 15:58:49 +0200
commit0aee39af76093992b140c0b83b4e3864818b4725 (patch)
tree4f643fd0ea16f0b134b0123e3a8651533770cd12
parentd39cfd9b428a4ab53a714ef17630baa85d7ff7f8 (diff)
downloadspejstore-0aee39af76093992b140c0b83b4e3864818b4725.tar.gz
spejstore-0aee39af76093992b140c0b83b4e3864818b4725.tar.bz2
spejstore-0aee39af76093992b140c0b83b4e3864818b4725.zip
postgres-hstore: fix database initialization with custom username
-rwxr-xr-x[-rw-r--r--]postgres-hstore/create_extension.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgres-hstore/create_extension.sh b/postgres-hstore/create_extension.sh
index 41df007..3d931de 100644..100755
--- a/postgres-hstore/create_extension.sh
+++ b/postgres-hstore/create_extension.sh
@@ -6,7 +6,7 @@ set -e
#
# Running CREATE EXTENSION in both template1 and postgres can lead to
# 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 ltree;
CREATE EXTENSION pg_trgm;