[tor-commits] [tor-cloud/master] Make sure Tor knows about the new port

runa at torproject.org runa at torproject.org
Tue Sep 25 10:49:24 UTC 2012


commit 1b55c2a82639e2490277fb3759c5c6d58971d1d5
Author: Runa A. Sandvik <runa.sandvik at gmail.com>
Date:   Tue Sep 25 11:49:14 2012 +0100

    Make sure Tor knows about the new port
---
 ec2-prep.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ec2-prep.sh b/ec2-prep.sh
index 7eb2b4a..5c6e42d 100644
--- a/ec2-prep.sh
+++ b/ec2-prep.sh
@@ -203,8 +203,9 @@ EOF
 # Edit /var/lib/tor/state and change the obfs port
 /etc/init.d/tor reload
 /etc/init.d/tor stop
-sleep 30s
 sed -i 's/TransportProxy.*/TransportProxy obfs2 0.0.0.0:52176/' /var/lib/tor/state
+/etc/init.d/tor start
+sleep 30s
 echo "Done configuring the system, will reboot"
 echo "Your system has been configured as a Tor obfsproxy bridge, see https://cloud.torproject.org/ for more info" > /etc/ec2-prep.sh
 reboot



More information about the tor-commits mailing list