Skip to content

Commit

Permalink
Hotfix for the DB_ROOT_PASS missing -
Browse files Browse the repository at this point in the history
  • Loading branch information
galexrt committed Oct 25, 2015
1 parent 3643017 commit 4b46b0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DB_USER="${DB_USER:-zulip}"
DB_PASSWORD="${DB_PASSWORD:-zulip}"
DB_PASS="${DB_PASS:-$(echo $DB_PASSWORD)}"
DB_ROOT_USER="${DB_ROOT_USER:-postgres}"
DB_ROOT_PASS="${DB_ROOT_PASS:$(echo $DB_PASS)}"
DB_ROOT_PASS="${DB_ROOT_PASS:-$(echo $DB_PASS)}"
unset DB_PASSWORD
# RabbitMQ
RABBITMQ_SETUP="${RABBITMQ_SETUP:-True}"
Expand Down Expand Up @@ -372,6 +372,8 @@ bootstrapDatabase() {
echo "Creating tsearch_extras extension ..."
echo "CREATE EXTENSION tsearch_extras SCHEMA $DB_SCHEMA;" | \
psql -h "$DB_HOST" -p "$DB_HOST_PORT" -U "$DB_ROOT_USER" "$DB_NAME" || :
else
echo ""
fi
unset PGPASSWORD
echo "Database structure recreated."
Expand Down

0 comments on commit 4b46b0b

Please sign in to comment.