Enable DB/user creation for weblate

This commit is contained in:
Livvy Mackintosh 2017-05-21 01:52:58 +02:00
parent 5d761fdbc4
commit 890dbc2a77

View File

@ -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