You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
442 B
Bash

#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE USER fuser_management WITH PASSWORD 'passwordofuserserver';
CREATE DATABASE user_management;
GRANT ALL PRIVILEGES ON DATABASE user_management TO fuser_management;
CREATE USER fapi WITH PASSWORD 'passwordofapiserver';
CREATE DATABASE flotte_api;
GRANT ALL PRIVILEGES ON DATABASE flotte_api TO fapi;
EOSQL