Changed the postgres user back to the env var DB_USER

This commit is contained in:
Alexander Trost
2015-10-21 12:47:04 +02:00
parent 103aaf775f
commit 7b452c6a1d

View File

@@ -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 ..."