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

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



commit ca810fc0840b94f32806b7f3f1abdcc6d4ef5270
Author: Peter Palfrader <peter@xxxxxxxxxxxxx>
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.



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