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

[tor-commits] [ooni-probe/master] Add support for Ubuntu lucid in setup script



commit e75fb2d0da4dedb12b179c9e39a95989aa45b4dc
Author: anadahz <kojgelo@xxxxxxxxx>
Date:   Fri May 16 18:09:45 2014 +0300

    Add support for Ubuntu lucid in setup script
---
 setup-dependencies.sh |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/setup-dependencies.sh b/setup-dependencies.sh
index 94d4480..fecca04 100755
--- a/setup-dependencies.sh
+++ b/setup-dependencies.sh
@@ -892,6 +892,11 @@ case $DISTRO_VERSION in
     echo "[.] It appears that you have the torproject.org Debian repository installed!";
   fi
 
+  if [[ $DISTRO_VERSION == "lucid" ]]; then
+    echo "[+] Installing Ubuntu universe repository...";
+    DO "sudo add-apt-repository "deb http://archive.ubuntu.com $DISTRO_VERSION universe"" "0"
+  fi
+
   # Install the basic packages to get pip ready to roll
   echo "[+] Updating OS package list...";
   sudo sudo apt-get update 2>&1 > /dev/null;
@@ -903,7 +908,12 @@ case $DISTRO_VERSION in
 
     install_virtualenv_securely
 
+  if [[ $DISTRO_VERSION == "lucid" ]]; then
+    DO "sudo apt-get -y install python-virtualenv" "0"
+  else
     DO "sudo apt-get -y install virtualenvwrapper" "0"
+  fi
+
     if [ ! -f $HOME/.virtualenvs/ooniprobe/bin/activate ]; then
       # Set up the virtual environment
       DO "mkdir -p $HOME/.virtualenvs" "0"



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