From cb7dec96f5579f4a727beb8f5d32f6193c3fa418 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Fri, 10 Feb 2006 07:01:45 +0000 Subject: [PATCH] JP importer script cleanups. --- org.glite.jp.client/examples/glite-jp-importer.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/org.glite.jp.client/examples/glite-jp-importer.sh b/org.glite.jp.client/examples/glite-jp-importer.sh index 02c79ee..09d72e1 100644 --- a/org.glite.jp.client/examples/glite-jp-importer.sh +++ b/org.glite.jp.client/examples/glite-jp-importer.sh @@ -5,25 +5,24 @@ # # job provenance server -JBSERVER=umbar.ics.muni.cz:8901 +JBSERVER=${JBSERVER:-umbar.ics.muni.cz:8901} # bookkeeping server -BKSERVER=scientific.civ.zcu.cz:9000 +BKSERVER=${BKSERVER:-scientific.civ.zcu.cz:9000} # dump directory of bkserver (-D argument) -BKSERVER_DUMPDIR=/tmp/dump +BKSERVER_DUMPDIR=${BKSERVER_DUMPDIR:-/tmp/LB/dump} # LB maildir for job registration (-J argument) -BKSERVER_JOBREG_MAILDIR=/tmp/lb_server_jpreg - +BKSERVER_JOBREG_MAILDIR=${BKSERVER_JOBREG_MAILDIR:-/tmp/LB/lb_server_jpreg} if [ -z "$X509_USER_CERT" -o -z "$X509_USER_KEY" ]; then echo "Please set X509_USER_CERT and X509_USER_KEY." exit 1 fi CERT_ARGS="-c $X509_USER_CERT -k $X509_USER_KEY" -LB_DUMPDIR=/tmp/lb_server_dump -BKSERVER_DUMPDIR_OLD=/tmp/dump.old -LB_EXPORTDIR=/tmp/lb_export -PREFIX=`dirname $0`/.. -LOGDIR=/tmp/log +LB_DUMPDIR=${LB_DUMPDIR:-/tmp/LB/lb_server_dump} +BKSERVER_DUMPDIR_OLD=${BKSERVER_DUMPDIR_OLD:-/tmp/LB/dump.old} +LB_EXPORTDIR=${LB_EXPORTDIR:-/tmp/LB/lb_export} +PREFIX=${PREFIX:-`dirname $0`/..} +LOGDIR=${LOGDIR:-/tmp/LB/log} [ -d $LB_DUMPDIR ] || mkdir -p $LB_DUMPDIR -- 1.8.2.3