Skip to content

Commit d3f90ed

Browse files
committed
first version
1 parent 48f1ce3 commit d3f90ed

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

infra/metabase/services/postgres/00_metabase_create_user.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ POSTGRES="psql -U postgres"
66
# create a shared role to read & write general datasets into postgres
77
echo "Creating database role: metabase"
88
$POSTGRES <<-EOSQL
9-
CREATE USER metabase WITH
9+
CREATE USER $ENV_MB_DB_USER WITH
1010
LOGIN
1111
NOSUPERUSER
1212
NOCREATEDB
1313
NOCREATEROLE
1414
NOINHERIT
1515
NOREPLICATION
16-
PASSWORD '$METABASE_PASSWORD';
16+
PASSWORD '$ENV_MB_DB_PASS';
1717
EOSQL

infra/metabase/services/postgres/01_metabase_create_db.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ POSTGRES="psql --username postgres"
66
# create database for superset
77
echo "Creating database: metabase"
88
$POSTGRES <<EOSQL
9-
CREATE DATABASE metabase OWNER metabase;
9+
CREATE DATABASE $ENV_MB_DB_DBNAME OWNER $ENV_MB_DB_USER;
1010
EOSQL

0 commit comments

Comments
 (0)