From ad80a2b9d3c1c474ba225ead2918f0a3cd8b911e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 6 Nov 2017 17:27:05 +0000 Subject: [PATCH] Fix for pleroma pubsub error --- src/freedombone-app-pleroma | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index cc338dfe..5dbb73ab 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -201,6 +201,8 @@ function pleroma_create_database { sed -i "s|username:.*|username: \"pleroma\",|g" $pleroma_secret sed -i "s|password:.*|password: \"$PLEROMA_ADMIN_PASSWORD\",|g" $pleroma_secret sed -i "s|database:.*|database: \"pleroma\",|g" $pleroma_secret + sed -i "/Pleroma.Web.Endpoint/a pubsub: [name: Pleroma.Web.PubSub, adapter: Phoenix.PubSub.PG2]," $pleroma_secret + sed -i 's|pubsub: | pubsub: |g' $pleroma_secret sed -i 's|watchers: []|watchers: [],|g' $pleroma_secret sed -i "/watchers: []/a url: [host: \"$PLEROMA_DOMAIN_NAME\", scheme: \"https\", port: 443]" $pleroma_secret sed -i 's|url: | url: |g' $pleroma_secret