blob: a8c59d177604e4c9ed4770c5fd452a24daa4ff18 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE USER ${TRAVELYNX_DB_USERNAME} PASSWORD '${TRAVELYNX_DB_PASSWORD}';
CREATE DATABASE ${TRAVELYNX_DB_NAME};
GRANT ALL PRIVILEGES ON DATABASE ${TRAVELYNX_DB_NAME} TO ${TRAVELYNX_DB_USERNAME};
EOSQL
|