From: Wolfram Schneider Date: Mon, 12 Jan 2009 18:50:12 +0000 (+0100) Subject: Allow to override PAZPAR2_HOME variable on the command line with X-Git-Tag: v1.1.0~44 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=5203952cbc186c3d648340759cde5177b24a1191;p=pazpar2-moved-to-github.git 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 --- 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