From 18707aaadb3c8117590aae99e10a2222381e2ae6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 9 Nov 2005 17:47:21 +0000 Subject: [PATCH] Hardcoded paths have probably looked ugly. --- org.glite.jp.client/examples/glite-jp-importer.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org.glite.jp.client/examples/glite-jp-importer.sh b/org.glite.jp.client/examples/glite-jp-importer.sh index 0faf1da..3cd9788 100644 --- a/org.glite.jp.client/examples/glite-jp-importer.sh +++ b/org.glite.jp.client/examples/glite-jp-importer.sh @@ -13,7 +13,12 @@ BKSERVER_DUMPDIR=/tmp/dump # LB maildir for job registration (-J argument) BKSERVER_JOBREG_MAILDIR=/tmp/lb_server_jpreg -CERT_ARGS="-c /home/valtri/.cert/hostcert.pem -k /home/valtri/.cert/hostkey.pem" +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 -- 1.8.2.3