# HG changeset patch # User Luke Hoersten # Date 1545972793 18000 # Node ID 56531bbfd0742003262de404024bb78e521a1d28 # Parent 63586cf10d46a034b2cd0b67f228ba66b2a3c7ae Updated for latest pleroma version. diff -r 63586cf10d46 -r 56531bbfd074 roles/pleroma/tasks/main.yaml --- 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" diff -r 63586cf10d46 -r 56531bbfd074 roles/pleroma/templates/setup_db.psql.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";