diff options
| author | Luke Hoersten <[email protected]> | 2020-02-09 12:08:03 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-02-09 12:08:03 -0600 |
| commit | c17f28aafd1f15a8c26835196956c1c209ec5ff3 (patch) | |
| tree | 471a2637b3d3b7551845af91c86be54586c2d2e5 /pleroma-otp/templates/setup_db.psql.j2 | |
| parent | 11746a2c064018a642486b208b2fdcaeae8ea8e5 (diff) | |
Moved roles to top level dir.
Diffstat (limited to 'pleroma-otp/templates/setup_db.psql.j2')
| -rw-r--r-- | pleroma-otp/templates/setup_db.psql.j2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pleroma-otp/templates/setup_db.psql.j2 b/pleroma-otp/templates/setup_db.psql.j2 new file mode 100644 index 0000000..1b27174 --- /dev/null +++ b/pleroma-otp/templates/setup_db.psql.j2 @@ -0,0 +1,7 @@ +CREATE USER {{pleroma_db_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}'; +CREATE DATABASE {{pleroma_db}} WITH OWNER {{pleroma_db_user}}; +\c {{pleroma_db}}; +--Extensions made by ecto.migrate that need superuser access +CREATE EXTENSION IF NOT EXISTS citext; +CREATE EXTENSION IF NOT EXISTS pg_trgm; +CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; |
