Create buscribe database during setup

pull/414/head
Mike Lang 1 month ago
parent 9c6340a5e0
commit 0f7b181be1

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

Loading…
Cancel
Save