Updated for latest pleroma version.
authorLuke Hoersten <luke@hoersten.org>
Thu, 27 Dec 2018 23:53:13 -0500
changeset 63 56531bbfd074
parent 62 63586cf10d46
child 64 2b0d305daa43
Updated for latest pleroma version.
roles/pleroma/tasks/main.yaml
roles/pleroma/templates/setup_db.psql.j2
--- a/roles/pleroma/tasks/main.yaml	Wed Sep 05 16:42:56 2018 -0500
+++ b/roles/pleroma/tasks/main.yaml	Thu Dec 27 23:53:13 2018 -0500
@@ -34,14 +34,6 @@
     dest: "~{{pleroma_user}}/pleroma"
     force: yes
 
-- name: update elixir dep
-  become: yes
-  become_user: "{{pleroma_user}}"
-  lineinfile:
-    path: "~{{pleroma_user}}/pleroma/mix.exs"
-    regexp: 'elixir: "~> 1.4",$'
-    line: 'elixir: "~> 1.7",'
-
 - name: install pleroma config files
   template:
     src: "{{item}}.j2"
--- a/roles/pleroma/templates/setup_db.psql.j2	Wed Sep 05 16:42:56 2018 -0500
+++ b/roles/pleroma/templates/setup_db.psql.j2	Thu Dec 27 23:53:13 2018 -0500
@@ -1,9 +1,7 @@
-CREATE USER {{pleroma_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}' CREATEDB;
--- in case someone runs this second time accidentally
-ALTER USER {{pleroma_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}' CREATEDB;
-CREATE DATABASE {{pleroma_user}};
-ALTER DATABASE {{pleroma_user}} OWNER TO {{pleroma_user}};
+CREATE USER {{pleroma_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}';
+CREATE DATABASE {{pleroma_user}} OWNER {{pleroma_user}};
 \c {{pleroma_user}};
 --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";