xmpp onion dependency
This commit is contained in:
parent
8d0277c5e5
commit
7ff67b1ce0
|
@ -283,6 +283,7 @@ XMPP_DIRECTORY="/var/lib/prosody"
|
||||||
|
|
||||||
# port used for xmpp as an onion service
|
# port used for xmpp as an onion service
|
||||||
XMPP_ONION_PORT=8091
|
XMPP_ONION_PORT=8091
|
||||||
|
XMPP_ONION_PORT2=8092
|
||||||
|
|
||||||
# file containing a list of remote locations to backup to
|
# file containing a list of remote locations to backup to
|
||||||
# Format: [username@friendsdomain//home/username] [ssh_password]
|
# Format: [username@friendsdomain//home/username] [ssh_password]
|
||||||
|
@ -6728,7 +6729,7 @@ function install_xmpp {
|
||||||
if grep -Fxq "install_xmpp" $COMPLETION_FILE; then
|
if grep -Fxq "install_xmpp" $COMPLETION_FILE; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
apt-get -y install lua-sec
|
apt-get -y install lua-sec lua-bitop
|
||||||
apt-get -y install prosody prosody-modules mercurial
|
apt-get -y install prosody prosody-modules mercurial
|
||||||
|
|
||||||
if [ ! -d /etc/prosody ]; then
|
if [ ! -d /etc/prosody ]; then
|
||||||
|
@ -6837,6 +6838,7 @@ function install_xmpp {
|
||||||
if ! grep -q "hidden_service_xmpp" /etc/tor/torrc; then
|
if ! grep -q "hidden_service_xmpp" /etc/tor/torrc; then
|
||||||
echo 'HiddenServiceDir /var/lib/tor/hidden_service_xmpp/' >> /etc/tor/torrc
|
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 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'
|
echo $'Added onion site for XMPP chat'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue