From 7f8e1d20ec1d80da032fbdb4e429f85536442441 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 25 Apr 2018 12:57:55 +0100 Subject: [PATCH] Use filename variable --- src/freedombone-app-xmpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp index f4fb1b60..9ccc92b1 100755 --- a/src/freedombone-app-xmpp +++ b/src/freedombone-app-xmpp @@ -87,10 +87,10 @@ function xmpp_update_e2e_policy { if [[ "$ONION_ONLY" != 'no' ]]; then XMPP_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_xmpp/hostname) - sed -i "s|VirtualHost \".*.onion.*|VirtualHost \"${XMPP_ONION_HOSTNAME}\"|g" /etc/prosody/prosody.cfg.lua + sed -i "s|VirtualHost \".*.onion.*|VirtualHost \"${XMPP_ONION_HOSTNAME}\"|g" "$filename" # TLS is not strictly needed for onion transport security - sed -i 's|c2s_require_encryption =.*|c2s_require_encryption = false|g' /etc/prosody/prosody.cfg.lua - sed -i 's|s2s_require_encryption =.*|s2s_require_encryption = false|g' /etc/prosody/prosody.cfg.lua + sed -i 's|c2s_require_encryption =.*|c2s_require_encryption = false|g' "$filename" + sed -i 's|s2s_require_encryption =.*|s2s_require_encryption = false|g' "$filename" fi }