Browse Source

Fix images on pleroma

master
Bob Mottram 3 years ago
parent
commit
db5ac4297b
1 changed files with 13 additions and 0 deletions
  1. + 13
    - 0
      src/freedombone-app-pleroma

+ 13
- 0
src/freedombone-app-pleroma

@ -868,6 +868,19 @@ function install_pleroma {
set_completion_param "pleroma domain" "$PLEROMA_DOMAIN_NAME"
# We need to set up the url option again because it somehow gets
# lost during mix compile
pleroma_secret=$PLEROMA_DIR/config/dev.secret.exs
if ! grep -q 'watchers: [],' $pleroma_secret; then
sed -i 's|watchers: []|watchers: [],|g' $pleroma_secret
fi
if ! grep -q 'url:' $pleroma_secret; then
if [[ $ONION_ONLY == 'no' ]]; then
sed -i "/watchers: []/a url: [host: \"$PLEROMA_DOMAIN_NAME\", scheme: \"https\", port: 443]" $pleroma_secret
else
sed -i "/watchers: []/a url: [host: \"$PLEROMA_ONION_HOSTNAME\", scheme: \"http\", port: 80]" $pleroma_secret
fi
fi
# daemon
echo '[Unit]' > /etc/systemd/system/pleroma.service

Loading…
Cancel
Save