From 0545ecbd51bd476a0dd6a611b2e8905a59ead405 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 27 Mar 2018 12:36:43 +0100 Subject: [PATCH] Fixing mixed content warnings --- src/freedombone-app-pleroma | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index bcef20bd..cfd2b094 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -1185,12 +1185,17 @@ function install_pleroma { echo 'WantedBy=multi-user.target'; echo 'Alias=pleroma.service'; } > /etc/systemd/system/pleroma.service + + # avoid mixed content warnings + sed -i '/config :pleroma, :media_proxy/!b;n;c####enabled: true,' $PLEROMA_DIR/config/config.exs + sed -i 's|####enabled| enabled|g' $PLEROMA_DIR/config/config.exs + # set registrations open initially sed -i 's|registrations_open:.*|registrations_open: true,|g' $PLEROMA_DIR/config/config.exs sed -i 's|"registrationOpen":.*|"registrationOpen": true,|g' $PLEROMA_DIR/priv/static/static/config.json if ! grep -q "media_proxy" $PLEROMA_DIR/priv/static/static/config.json; then - sed -i '/"name":/a "media_proxy": false,' $PLEROMA_DIR/priv/static/static/config.json + sed -i '/"name":/a "media_proxy": true,' $PLEROMA_DIR/priv/static/static/config.json sed -i 's|"media_proxy"| "media_proxy"|g' $PLEROMA_DIR/priv/static/static/config.json else sed -i 's|"media_proxy".*|"media_proxy": false,|g' $PLEROMA_DIR/priv/static/static/config.json