🎉 First commit !!!
This commit is contained in:
11
backend/docker/database/docker-entrypoint-initdb.d/init-user-db.sh
Executable file
11
backend/docker/database/docker-entrypoint-initdb.d/init-user-db.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
CREATE USER idfm_matrix_bot;
|
||||
CREATE DATABASE bot;
|
||||
CREATE DATABASE idfm;
|
||||
GRANT ALL PRIVILEGES ON DATABASE bot TO idfm_matrix_bot;
|
||||
GRANT ALL PRIVILEGES ON DATABASE idfm TO idfm_matrix_bot;
|
||||
EOSQL
|
||||
|
Reference in New Issue
Block a user