roles/pleroma/templates/setup_db.psql.j2
author Luke Hoersten <luke@hoersten.org>
Mon, 20 Aug 2018 10:22:45 -0500
changeset 61 2dd82d9e2103
parent 60 48a3a65119d5
child 63 56531bbfd074
permissions -rw-r--r--
Added nginx reverse proxy to pleroma.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
CREATE USER {{pleroma_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}' CREATEDB;
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
-- in case someone runs this second time accidentally
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
ALTER USER {{pleroma_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}' CREATEDB;
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
CREATE DATABASE {{pleroma_user}};
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
ALTER DATABASE {{pleroma_user}} OWNER TO {{pleroma_user}};
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
\c {{pleroma_user}};
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
--Extensions made by ecto.migrate that need superuser access
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
CREATE EXTENSION IF NOT EXISTS citext;
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
CREATE EXTENSION IF NOT EXISTS pg_trgm;