diff options
author | Dmitry Puzikov <dmitry.puzikov@tieto.com> | 2019-07-17 16:07:57 +0200 |
---|---|---|
committer | Dmitry Puzikov <dmitry.puzikov@tieto.com> | 2019-08-29 12:11:01 +0200 |
commit | 7ea1df80bf0c87800ff737a6b3e29af689bb003f (patch) | |
tree | 8c8d721e572c06ac618907f724ad69e218471780 /src/main/bin/start.sh | |
parent | 5f8a8eed09b22bf9f849607e743ae1fe57433eb1 (diff) |
Fixed project version parsing
Change-Id: I7f5f7ab3d9b3ff58b248652f41efc620d779e6e4
Issue-ID: INT-1149
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Diffstat (limited to 'src/main/bin/start.sh')
-rw-r--r-- | src/main/bin/start.sh | 10 |
1 files changed, 5 insertions, 5 deletions
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 |