7 lines
241 B
Bash
Executable File
7 lines
241 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
|
CREATE USER ${APP_DB_USER} WITH PASSWORD '${APP_DB_PASSWORD}';
|
|
GRANT CONNECT ON DATABASE ${POSTGRES_DB} TO ${APP_DB_USER};
|
|
EOSQL |