[tor-commits] [tor-cloud/master] Print a line after successfully verifying the signature

runa at torproject.org runa at torproject.org
Sat Feb 25 14:03:13 UTC 2012


commit a697b5630dedf2a1f98a2f2838694985a8ea4c40
Author: Runa A. Sandvik <runa.sandvik at gmail.com>
Date:   Sat Feb 25 14:02:59 2012 +0000

    Print a line after successfully verifying the signature
---
 build.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/build.sh b/build.sh
index 50b2290..7fc5f34 100755
--- a/build.sh
+++ b/build.sh
@@ -99,6 +99,7 @@ echo "See if the hashes match. If all else fails, lock ourselves out of the inst
 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no  -i ${sshkey} ubuntu@${host} -q -t "if [ `echo $?` -eq "0" ]; then hashone=`grep ubuntu-10.04-server-cloudimg-i386.tar.gz /mnt/SHA256SUMS | awk '{print $1}'` && hashtwo=`sha256sum /mnt/ubuntu-10.04-server-cloudimg-i386.tar.gz | awk '{print $1}'` && if [ $hashone != $hashtwo ]; then echo 'Could not verify signature, will lock you out of the instance' && sudo rm /home/ubuntu/.ssh/authorized_keys ; fi ; else echo 'Could not verify signature, will lock you out of the instance' && sudo rm /home/ubuntu/.ssh/authorized_keys ; fi"
 
 # Set the correct permission for /mnt
+echo "Verified the signature, continue with the build process"
 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no  -i ${sshkey} ubuntu@${host} -q -t "sudo chown ubuntu:ubuntu /mnt"
 
 # If everything is ok, extract image and continue the build process



More information about the tor-commits mailing list