Fix for pleroma pubsub error

This commit is contained in:
Bob Mottram 2017-11-06 17:27:05 +00:00
parent f7d5d0c94f
commit ad80a2b9d3
1 changed files with 2 additions and 0 deletions

View File

@ -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