From 5203952cbc186c3d648340759cde5177b24a1191 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 12 Jan 2009 19:50:12 +0100 Subject: [PATCH] Allow to override PAZPAR2_HOME variable on the command line with environment variable, e.g. env PAZPAR2_HOME=$HOME/indexdata/pazpar2 ./src/pazpar2.sh restart -t etc/edu.xml --- src/pazpar2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pazpar2.sh b/src/pazpar2.sh index 528aa3d..baa8c17 100755 --- a/src/pazpar2.sh +++ b/src/pazpar2.sh @@ -2,7 +2,7 @@ # # pazpar2.sh - pazpar2 start/stop script -PAZPAR2_HOME=$HOME/pazpar2 +: ${PAZPAR2_HOME=$HOME/pazpar2} pazpar2_program=$PAZPAR2_HOME/src/pazpar2 pazpar2_config=$PAZPAR2_HOME/etc/pazpar2.cfg pazpar2_pid=$PAZPAR2_HOME/pazpar2.pid -- 1.7.10.4