--- a/roles/pleroma/templates/setup_db.psql.j2 Sun Dec 30 11:13:20 2018 -0600
+++ b/roles/pleroma/templates/setup_db.psql.j2 Mon Dec 31 15:50:19 2018 -0600
@@ -1,5 +1,6 @@
CREATE USER {{pleroma_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}';
-CREATE DATABASE {{pleroma_user}} OWNER {{pleroma_user}};
+CREATE DATABASE {{pleroma_user}};
+ALTER DATABASE {{pleroma_user}} OWNER TO {{pleroma_user}};
\c {{pleroma_user}};
--Extensions made by ecto.migrate that need superuser access
CREATE EXTENSION IF NOT EXISTS citext;