Sfoglia il codice sorgente

Use upstream tor package

Bob Mottram 8 anni fa
parent
commit
5e76d9bc68
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7
    1
      src/freedombone-utils-onion

+ 7
- 1
src/freedombone-utils-onion Vedi File

271
     if [[ $(is_completed $FUNCNAME) == "1" ]]; then
271
     if [[ $(is_completed $FUNCNAME) == "1" ]]; then
272
         return
272
         return
273
     fi
273
     fi
274
-    apt-get -yq install tor
274
+
275
+    echo "deb http://deb.torproject.org/torproject.org $DEBIAN_VERSION main" | sudo tee -a /etc/apt/sources.list.d/tor.list
276
+    echo "deb-src http://deb.torproject.org/torproject.org $DEBIAN_VERSION main" | sudo tee -a /etc/apt/sources.list.d/tor.list
277
+    gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
278
+    gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
279
+    apt-get update
280
+    apt-get -yq install tor deb.torproject.org-keyring
275
     if [ ! -f /etc/tor/torrc ]; then
281
     if [ ! -f /etc/tor/torrc ]; then
276
         echo 'Tor failed to install'
282
         echo 'Tor failed to install'
277
         exit 38259
283
         exit 38259