mirror of
https://github.com/derf/travelynx
synced 2024-12-04 18:29:11 +00:00
46e85324df
🔥docker🔥compose🔥
8 lines
No EOL
315 B
Bash
8 lines
No EOL
315 B
Bash
#!/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 |