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 }