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

[tor-commits] [tor-cloud/master] update gpg key, set -e, use apt-get



commit 679a3f79136d9c1445e5017ad63dffa060ea2a20
Author: Runa A. Sandvik <runa.sandvik@xxxxxxxxx>
Date:   Mon Sep 10 16:28:22 2012 +0100

    update gpg key, set -e, use apt-get
---
 ec2-prep.sh |  130 ++++++++++++++--------------------------------------------
 1 files changed, 32 insertions(+), 98 deletions(-)

diff --git a/ec2-prep.sh b/ec2-prep.sh
index 344cf7f..a32c148 100644
--- a/ec2-prep.sh
+++ b/ec2-prep.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -e
 # ec2-prep by: Jacob Appelbaum
 # git://git.torproject.org/ioerror/tor-cloud.git
 # This is the code to run on an Ubuntu machine to prep it as a relay, bridge or
@@ -24,8 +24,8 @@ fi
 
 # Get the latest package updates
 echo "Updating the system..."
-aptitude update
-aptitude -y safe-upgrade
+apt-get update
+apt-get -y safe-upgrade
 
 # Configure unattended-upgrades. The system will automatically download,
 # install and configure all packages, and reboot if necessary.
@@ -117,7 +117,7 @@ echo "Installing Tor's gpg key...";
 #gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
 cat << EOF > $GPGKEY
 -----BEGIN PGP PUBLIC KEY BLOCK-----
-Version: GnuPG v1.4.11 (GNU/Linux)
+Version: GnuPG v1.4.10 (GNU/Linux)
 
 mQENBEqg7GsBCACsef8koRT8UyZxiv1Irke5nVpte54TDtTl1za1tOKfthmHbs2I
 4DHWG3qrwGayw+6yb5mMFe0h9Ap9IbilA5a1IdRsdDgViyQQ3kvdfoavFHRxvGON
@@ -125,106 +125,40 @@ tknIyk5Goa36GMBl84gQceRs/4Zx3kxqCV+JYXE9CmdkpkVrh2K3j5+ysDWfD/kO
 dTzwu3WHaAwL8d5MJAGQn2i6bTw4UHytrYemS1DdG/0EThCCyAnPmmb8iBkZlSW8
 6MzVqTrN37yvYWTXk6MwKH50twaX5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knElEUNAQdUNuMB9TUtmBvh00aYoOjzRoAentTS
++/3p3+iQXK8NPJjQWBNToUVUQiYD9bBCIK/aHhBhmdEc0YfcWyQgd6IL7547BRJb
+PDjuOyAfRWLJ17uJMGYqOFTkputmpG8n0dG0yUcUI4MoA8U79iG83EAd5vTS1eJi
+Tmc+PLBneknviBEBiSRO4Yu5q4QxksOqYhFYBzOj6HXwgJCczVEZUCnuW7kHww==
+=10NR
 -----END PGP PUBLIC KEY BLOCK-----
 EOF
 apt-key add $GPGKEY
 
 # Install Tor and arm
 echo "Installing Tor...";
-aptitude update
-aptitude -y install tor tor-geoipdb tor-arm
+apt-get update
+apt-get -y install tor tor-geoipdb tor-arm deb.torproject.org-keyring
 
 # Configure Tor
 echo "Configuring Tor...";

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