[tor-commits] [ooni-probe/master] Add sudo to apt-key

ioerror at torproject.org ioerror at torproject.org
Tue Feb 26 08:39:24 UTC 2013


commit 691aed31e8c91d65057fe12b0dc3dd9afdf7da38
Author: Jacob Appelbaum <jacob at appelbaum.net>
Date:   Tue Feb 26 00:38:27 2013 -0800

    Add sudo to apt-key
---
 setup-dependencies.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/setup-dependencies.sh b/setup-dependencies.sh
index c3de789..c4f356f 100755
--- a/setup-dependencies.sh
+++ b/setup-dependencies.sh
@@ -4,10 +4,13 @@
 RELEASE="`lsb_release -c|cut -f 2`";
 TOR_DEB_REPO="deb.torproject.org/torproject.org";
 
+echo "sudo is annoying, tell us your password once and sudo won't annoy you for the rest of this process...";
+sudo echo "if you read this, we won't ask for your password again during this process unless something goes wrong";
+
 # This is for Ubuntu's natty
 if [ $RELEASE = "natty" ] || [ $RELEASE = "wheezy" ]; then
   # Add Tor repo
-  HAVE_GPG_KEY="`apt-key finger|grep 'A3C4 F0F9 79CA A22C DBA8  F512 EE8C BC9E 886D DD89'|head -n 1`";
+  HAVE_GPG_KEY="`sudo apt-key finger|grep 'A3C4 F0F9 79CA A22C DBA8  F512 EE8C BC9E 886D DD89'|head -n 1`";
   if [ -z "$HAVE_GPG_KEY" ]; then
     echo "It appears that you do not have the torproject.org Debian repository key installed; installing it...";
     cat apt.key | sudo apt-key add -;



More information about the tor-commits mailing list