[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] It seems like censor from country X blocks also when the URL contains "torproject.org"



commit 847ef37168e6f2621f78a6df0f99280db1430113
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Fri Jul 3 16:13:51 2015 +0200

    It seems like censor from country X blocks also when the URL contains "torproject.org"
---
 scripts/install.sh |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/scripts/install.sh b/scripts/install.sh
index cf86e54..b1a2f9d 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -67,7 +67,7 @@ fi
 if ! (curl $TOR_DEB_REPO | grep "Apache Server at deb.torproject.org");then
   echo '  The Tor Debian repository deb.torproject.org appears to be blocked.'
   echo '  Failing over to using the cloudfronted mirror.'
-  TOR_DEB_REPO="http://d3skbh62gb3f3v.cloudfront.net/torproject.org"; 
+  TOR_DEB_REPO="https://d3skbh62gb3f3v.cloudfront.net/torproject.org"; 
 fi
 
 # perform some very rudimentary platform detection
@@ -164,6 +164,13 @@ case "$lsb_dist" in
 				did_apt_get_update=1
 			fi
 		}
+
+    if [ "$TOR_DEBIAN_REPOSITORY" == "https://*"; ];then
+      (
+        set -x
+        $sh_c 'apt-get install -y apt-transport-https'
+      )
+    fi
     
     (
       set -x



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits