diff --git a/postgres/setup.sh b/postgres/setup.sh index ad45cc7..86eafb6 100644 --- a/postgres/setup.sh +++ b/postgres/setup.sh @@ -77,6 +77,7 @@ if [ -n "$BUSCRIBE_USER" ]; then echo "host all $BUSCRIBE_USER all md5" >> "$PGDATA/pg_hba.conf" sql "$POSTGRES_USER" <<-EOSQL CREATE USER $BUSCRIBE_USER LOGIN PASSWORD '$BUSCRIBE_PASSWORD'; + CREATE DATABASE $BUSCRIBE_DB WITH OWNER $BUSCRIBE_USER; EOSQL echo "Applying schema for $BUSCRIBE_DB"