From 0f7b181be1a52cc0a6db158aa50473adcca51bfb Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 22 Oct 2024 14:11:18 +1100 Subject: [PATCH] Create buscribe database during setup --- postgres/setup.sh | 1 + 1 file changed, 1 insertion(+) 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"