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

[tor-commits] [ooni-probe/master] Parametrise backports repo configuration



commit b25a0c89819392721361edf31903fd3af9f03021
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Mon Jul 13 11:30:00 2015 +0200

    Parametrise backports repo configuration
    
    Install the GPG key of the backports repo
---
 scripts/install.sh |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/scripts/install.sh b/scripts/install.sh
index c6db265..08cab8c 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -181,8 +181,10 @@ install_meek() {
 }
 
 
-setup_wheezy_backports() {
-  echo "deb http://ftp.de.debian.org/ wheezy-backports main" > /etc/apt/sources.list.d/stable.list
+setup_backports() {
+  echo "deb http://ftp.de.debian.org/ ${distro_codename}-backports main" > /etc/apt/sources.list.d/stable.list
+  $sh_c "gpg --keyserver pgpkeys.mit.edu --recv-key A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553"
+  $sh_c "gpg -a --export A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553 | apt-key add -"
   $sh_c "apt-get update"
 }
 
@@ -198,10 +200,10 @@ install_go() {
     Ubuntu|Debian)
       if [ "$lsb_dist" = 'Debian' ] && 
         [ "$(echo $distro_version | cut -d '.' -f1 )" -lt $MIN_DEBIAN_VERSION ]; then
-        setup_wheezy_backports
+        setup_backports
         (
         set -x
-        $sh_c "apt-get install -y -t wheezy-backports golang"
+        $sh_c "apt-get install -y -t ${distro_codename}-backports golang"
         )
       else 
         (



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