Install tor daemon from backports

This commit is contained in:
Bob Mottram 2018-01-25 12:17:37 +00:00
parent 09a68c7a28
commit 32d52faf9f
4 changed files with 9 additions and 3 deletions

View File

@ -17,7 +17,7 @@
# License # License
# ======= # =======
# #
# Copyright (C) 2014-2017 Bob Mottram <bob@freedombone.net> # Copyright (C) 2014-2018 Bob Mottram <bob@freedombone.net>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by # it under the terms of the GNU Affero General Public License as published by

View File

@ -909,7 +909,7 @@ initialise_mesh() {
chroot "$rootdir" apt-get -yq install apt-transport-https chroot "$rootdir" apt-get -yq install apt-transport-https
# install tor as a possible way of routing traffic between internet gateways # install tor as a possible way of routing traffic between internet gateways
chroot "$rootdir" apt-get -yq install tor chroot "$rootdir" apt-get -yq -t stretch-backports install tor
# dhcp daemon for hotspot on secondary wifi adapter # dhcp daemon for hotspot on secondary wifi adapter
chroot "$rootdir" apt-get -yq install dnsmasq chroot "$rootdir" apt-get -yq install dnsmasq

View File

@ -97,6 +97,12 @@ if [ -d $PROJECT_DIR ]; then
email_install_tls email_install_tls
email_disable_chunking email_disable_chunking
#defrag_filesystem #defrag_filesystem
# reinstall tor from backports
tor_version=$(tor --version)
if [[ "$tor_version" == *' 0.2'* ]]; then
apt-get -yq -t stretch-backports install tor
fi
fi fi
fi fi

View File

@ -270,7 +270,7 @@ function install_tor {
return return
fi fi
apt-get -yq install tor apt-get -yq -t stretch-backports install tor
if [ ! -f /etc/tor/torrc ]; then if [ ! -f /etc/tor/torrc ]; then
echo 'Tor failed to install' echo 'Tor failed to install'
exit 38259 exit 38259