Install tor daemon from backports
This commit is contained in:
parent
09a68c7a28
commit
32d52faf9f
|
@ -17,7 +17,7 @@
|
|||
# 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
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
|
|
|
@ -909,7 +909,7 @@ initialise_mesh() {
|
|||
chroot "$rootdir" apt-get -yq install apt-transport-https
|
||||
|
||||
# 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
|
||||
chroot "$rootdir" apt-get -yq install dnsmasq
|
||||
|
|
|
@ -97,6 +97,12 @@ if [ -d $PROJECT_DIR ]; then
|
|||
email_install_tls
|
||||
email_disable_chunking
|
||||
#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
|
||||
|
||||
|
|
|
@ -270,7 +270,7 @@ function install_tor {
|
|||
return
|
||||
fi
|
||||
|
||||
apt-get -yq install tor
|
||||
apt-get -yq -t stretch-backports install tor
|
||||
if [ ! -f /etc/tor/torrc ]; then
|
||||
echo 'Tor failed to install'
|
||||
exit 38259
|
||||
|
|
Loading…
Reference in New Issue