Enable DB/user creation for weblate
This commit is contained in:
parent
5d761fdbc4
commit
890dbc2a77
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||
CREATE USER weblate WITH PASSWORD '$POSTGRES_PASSWORD';
|
||||
CREATE DATABASE weblate;
|
||||
GRANT ALL PRIVILEGES ON DATABASE weblate TO weblate;
|
||||
EOSQL
|
Loading…
Reference in New Issue
Block a user