[tor-commits] [guardfraction/master] Find GUARDFRACTION_SRC

asn at torproject.org asn at torproject.org
Tue Feb 24 13:45:03 UTC 2015


commit ca810fc0840b94f32806b7f3f1abdcc6d4ef5270
Author: Peter Palfrader <peter at palfrader.org>
Date:   Wed Feb 4 16:50:36 2015 +0100

    Find GUARDFRACTION_SRC
---
 guardfraction_cron.sh |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/guardfraction_cron.sh b/guardfraction_cron.sh
index da90247..ff10528 100755
--- a/guardfraction_cron.sh
+++ b/guardfraction_cron.sh
@@ -6,14 +6,14 @@ set -u
 # it to the database and outputs a guardfraction output file.
 # Please edit the definitions below to your liking:
 
-# Where the guardfraction python script topdir is.
-GUARDFRACTION_SRC=/home/user/guardiness/
-
 # Where the consensuses and data are going to be stored
 STATE_DIR=/home/user/test/consensus_dir
 
 #################################
 
+GUARDFRACTION_SRC=$(dirname "$0")
+GUARDFRACTION_SRC=$(readlink -f "$GUARDFRACTION_SRC")
+
 DAYS_WORTH=90
 
 # Where the guardfraction output file should be placed.





More information about the tor-commits mailing list