From c3481c3b11e681257cdb00f7b3d5aaac146394c9 Mon Sep 17 00:00:00 2001 From: Vic Date: Fri, 27 May 2016 15:07:53 +0800 Subject: [PATCH] kylin.sh should always set KYLIN_HOME to an absolute path --- build/bin/kylin.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build/bin/kylin.sh b/build/bin/kylin.sh index 42789be..c3d92e5 100644 --- a/build/bin/kylin.sh +++ b/build/bin/kylin.sh @@ -17,11 +17,10 @@ # limitations under the License. # -dir=$(dirname ${0}) - # We should set KYLIN_HOME here for multiple tomcat instances that are on the same node. # In addition, we should set a KYLIN_HOME for the global use as normal. -export KYLIN_HOME=${dir}/../ +KYLIN_HOME=`dirname $0`/.. +export KYLIN_HOME=`cd "$KYLIN_HOME"; pwd` source ${dir}/check-env.sh mkdir -p ${KYLIN_HOME}/logs -- 2.3.2 (Apple Git-55)