xmpp onion dependency

This commit is contained in:
Bob Mottram 2016-01-01 13:06:38 +00:00
parent 8d0277c5e5
commit 7ff67b1ce0
1 changed files with 3 additions and 1 deletions

View File

@ -283,6 +283,7 @@ XMPP_DIRECTORY="/var/lib/prosody"
# port used for xmpp as an onion service
XMPP_ONION_PORT=8091
XMPP_ONION_PORT2=8092
# file containing a list of remote locations to backup to
# Format: [username@friendsdomain//home/username] [ssh_password]
@ -6728,7 +6729,7 @@ function install_xmpp {
if grep -Fxq "install_xmpp" $COMPLETION_FILE; then
return
fi
apt-get -y install lua-sec
apt-get -y install lua-sec lua-bitop
apt-get -y install prosody prosody-modules mercurial
if [ ! -d /etc/prosody ]; then
@ -6837,6 +6838,7 @@ function install_xmpp {
if ! grep -q "hidden_service_xmpp" /etc/tor/torrc; then
echo 'HiddenServiceDir /var/lib/tor/hidden_service_xmpp/' >> /etc/tor/torrc
echo "HiddenServicePort 5222 127.0.0.1:${XMPP_ONION_PORT}" >> /etc/tor/torrc
echo "HiddenServicePort 5269 127.0.0.1:${XMPP_ONION_PORT2}" >> /etc/tor/torrc
echo $'Added onion site for XMPP chat'
fi