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

[tor-commits] [guardfraction/master] Move torification and consensus url into variables



commit 6bf1d0349a67617109398a2ef69528fa248c5598
Author: Peter Palfrader <peter@xxxxxxxxxxxxx>
Date:   Wed Feb 4 16:59:05 2015 +0100

    Move torification and consensus url into variables
---
 guardfraction_cron.sh |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/guardfraction_cron.sh b/guardfraction_cron.sh
index 654debd..cd6debc 100755
--- a/guardfraction_cron.sh
+++ b/guardfraction_cron.sh
@@ -14,6 +14,9 @@ set -e
 GUARDFRACTION_SRC=$(dirname "$0")
 GUARDFRACTION_SRC=$(readlink -f "$GUARDFRACTION_SRC")
 STATE_DIR="$GUARDFRACTION_SRC/var"
+WGET_PREFIX=""
+#WGET_PREFIX="torify"
+CONSENSUS_SOURCE="http://128.31.0.39:9131/tor/status-vote/current/consensus";
 
 DAYS_WORTH=90
 
@@ -35,7 +38,7 @@ tmpdir=`mktemp -d "/tmp/guardfraction-XXXXXX"`
 trap "rm -rf '$tmpdir'" EXIT
 
 # Download latest consensus.
-if ! torify wget -q http://128.31.0.39:9131/tor/status-vote/current/consensus -O "$tmpdir/consensus"
+if ! $WGET_PREFIX wget -q "$CONSENSUS_SOURCE" -O "$tmpdir/consensus"
 then
     echo >&2 "Failed while getting newest consensus."
     exit 1



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