fi
if [ "$ZOOKEEPER" == "yes" ] ; then
ZKRUN="-DzkRun -DnumShards=${SHARDS}"
-fi
-OPTIONS=" -Djetty.port=$PORT ${BOOTSTRAP_OPT} -Dcollection.configName=$NAME ${ZKRUN} -DzkHost=${ZKHOSTS} "
+fi
+if [ "${SOLR_HOME}" != "" ] ; then
+ SOLR_HOME_OPT="-Dsolr.solr.home=${SOLR_HOME}"
+fi
+
+OPTIONS=" $SOLR_HOME_OPT -Djetty.port=$PORT ${BOOTSTRAP_OPT} -Dcollection.configName=$NAME ${ZKRUN} -DzkHost=${ZKHOSTS} "
if [ "$1" == "start" ]; then
if [ -f "${PID_FILE}" ] ; then
echo "pid file ${PID_FILE} exists. Already running?"