|
@@ -6847,7 +6847,15 @@ function install_xmpp {
|
6847
|
6847
|
exit 65349
|
6848
|
6848
|
fi
|
6849
|
6849
|
XMPP_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_xmpp/hostname)
|
6850
|
|
- echo "XMPP onion domain:${XMPP_ONION_HOSTNAME}" >> $COMPLETION_FILE
|
|
6850
|
+ if ! grep -q "${XMPP_ONION_HOSTNAME}" /etc/prosody/conf.avail/xmpp.cfg.lua; then
|
|
6851
|
+ echo "VirtualHost \"${XMPP_ONION_HOSTNAME}\"" >> /etc/prosody/conf.avail/xmpp.cfg.lua
|
|
6852
|
+ echo ' modules_enabled = { "onions" };' >> /etc/prosody/conf.avail/xmpp.cfg.lua
|
|
6853
|
+ fi
|
|
6854
|
+ if ! grep -q "XMPP onion domain" $COMPLETION_FILE; then
|
|
6855
|
+ echo "XMPP onion domain:${XMPP_ONION_HOSTNAME}" >> $COMPLETION_FILE
|
|
6856
|
+ else
|
|
6857
|
+ sed -i "s|XMPP onion domain.*|XMPP onion domain:${XMPP_ONION_HOSTNAME}|g" $COMPLETION_FILE
|
|
6858
|
+ fi
|
6851
|
6859
|
|
6852
|
6860
|
if ! grep -q "Your XMPP password is" /home/$MY_USERNAME/README; then
|
6853
|
6861
|
if [ -f $IMAGE_PASSWORD_FILE ]; then
|