detect architecture to set JAVA_HOME
This commit is contained in:
parent
ae7bd7abb9
commit
b35785093e
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
JAVA_HOME=/usr/lib/jvm/default-java/
|
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
|
||||||
|
getconf LONG_BIT | grep 32 && JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386/
|
||||||
JAVA=$JAVA_HOME/bin/java
|
JAVA=$JAVA_HOME/bin/java
|
||||||
exec $JAVA -jar /usr/local/lib/hostsharing/hsadmin/hsscript-full.jar "$@"
|
exec $JAVA -jar /usr/local/lib/hostsharing/hsadmin/hsscript-full.jar "$@"
|
Loading…
Reference in New Issue
Block a user