Use filename variable
This commit is contained in:
parent
4e4bb0e47e
commit
7f8e1d20ec
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue