From 7b452c6a1dfd526ad3231a9908685ccc5c9b7334 Mon Sep 17 00:00:00 2001 From: Alexander Trost Date: Wed, 21 Oct 2015 12:47:04 +0200 Subject: [PATCH] Changed the postgres user back to the env var DB_USER --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8065f79..d3495db 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -82,9 +82,9 @@ EOF ALTER ROLE zulip SET search_path TO zulip,public; CREATE DATABASE zulip OWNER=zulip; CREATE SCHEMA zulip AUTHORIZATION zulip; - """ | psql -h "$DB_HOST" -p "$DB_PORT" -U "postgres" || : + """ | psql -h "$DB_HOST" -p "$DB_PORT" -U "$DB_USER" || : echo "CREATE EXTENSION tsearch_extras SCHEMA zulip;" | \ - psql -h "$DB_HOST" -p "$DB_PORT" -U "postgres" "zulip" || : + psql -h "$DB_HOST" -p "$DB_PORT" -U "$DB_USER" "zulip" || : } databaseInitiation(){ echo "Migrating database ..."