Use upstream tor package

This commit is contained in:
Bob Mottram 2017-06-03 19:04:46 +01:00
parent f6b0037c29
commit 5e76d9bc68
1 changed files with 7 additions and 1 deletions

View File

@ -271,7 +271,13 @@ function install_tor {
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi
apt-get -yq install tor
echo "deb http://deb.torproject.org/torproject.org $DEBIAN_VERSION main" | sudo tee -a /etc/apt/sources.list.d/tor.list
echo "deb-src http://deb.torproject.org/torproject.org $DEBIAN_VERSION main" | sudo tee -a /etc/apt/sources.list.d/tor.list
gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
apt-get update
apt-get -yq install tor deb.torproject.org-keyring
if [ ! -f /etc/tor/torrc ]; then
echo 'Tor failed to install'
exit 38259