run hsscript on java-11
This commit is contained in:
parent
ade38796a5
commit
12499aae20
@ -8,7 +8,7 @@
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>hsadmin-cli</artifactId>
|
||||
<version>1.1.2</version>
|
||||
<version>1.2.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>HSAdmin-Cli</name>
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
|
||||
getconf LONG_BIT | grep 32 >/dev/null && JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386/
|
||||
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
|
||||
getconf LONG_BIT | grep 32 >/dev/null && JAVA_HOME=/usr/lib/jvm/java-11-openjdk-i386/
|
||||
JAVA=$JAVA_HOME/bin/java
|
||||
exec $JAVA -jar /usr/local/lib/hostsharing/hsadmin/hsscript-full.jar "$@"
|
||||
JVM_ARGS="-Dnashorn.args=--no-deprecation-warning"
|
||||
exec $JAVA $JVM_ARGS -jar /usr/local/lib/hostsharing/hsadmin/hsscript-full.jar "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user