From baff7ad66d0c750a41956734bafc1903dfcca81b Mon Sep 17 00:00:00 2001 From: Dmitry Puzikov Date: Wed, 17 Jul 2019 16:07:57 +0200 Subject: Fixed project version parsing Change-Id: I7f5f7ab3d9b3ff58b248652f41efc620d779e6e4 Issue-ID: INT-1149 Signed-off-by: Dmitry Puzikov (cherry picked from commit 7ea1df80bf0c87800ff737a6b3e29af689bb003f) --- src/main/bin/start.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/bin') diff --git a/src/main/bin/start.sh b/src/main/bin/start.sh index 76b5991..120f960 100644 --- a/src/main/bin/start.sh +++ b/src/main/bin/start.sh @@ -1,7 +1,7 @@ #!/bin/sh -BASEDIR="/opt/app/data-router/" -AJSC_HOME="$BASEDIR" +MICRO_HOME="/opt/app/data-router" + if [ -z "$CONFIG_HOME" ]; then @@ -14,8 +14,8 @@ if [ -z "$KEY_STORE_PASSWORD" ]; then exit 1 fi -PROPS="-DAJSC_HOME=$AJSC_HOME" -PROPS="$PROPS -Dlogging.config=$BASEDIR/bundleconfig/etc/logback.xml" +PROPS="-DAJSC_HOME=${MICRO_HOME}" +PROPS="$PROPS -Dlogging.config=${MICRO_HOME}/bundleconfig/etc/logback.xml" PROPS="$PROPS -DCONFIG_HOME=$CONFIG_HOME" PROPS="$PROPS -DKEY_STORE_PASSWORD=$KEY_STORE_PASSWORD" @@ -31,6 +31,6 @@ fi JVM_MAX_HEAP=${MAX_HEAP:-1024} cd ${MICRO_HOME} -jar uf0 $MICRO_HOME/data-router.jar BOOT-INF/lib/* +jar uf0 ${MICRO_HOME}/data-router.jar BOOT-INF/lib/* > /dev/null 2>&1 exec java -Xmx${JVM_MAX_HEAP}m $PROPS -jar ${MICRO_HOME}/data-router.jar \ No newline at end of file -- cgit 1.2.3-korg