10 lines
313 B
Bash
Executable File
10 lines
313 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd /usr/share/numerus/sqitch
|
|
PGUSER="$POSTGRES_USER" PGDATABASE="$POSTGRES_DB" sqitch deploy
|
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
|
CREATE ROLE "${NUMERUS_USER:-numerus}" LOGIN PASSWORD '${NUMERUS_PASSWORD:-numerus}' IN ROLE authenticator
|
|
EOSQL
|
|
|