detect architecture to set JAVA_HOME

This commit is contained in:
Peter Hormanns 2017-12-21 19:33:55 +01:00
parent ae7bd7abb9
commit b35785093e

View File

@ -1,4 +1,5 @@
#!/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
exec $JAVA -jar /usr/local/lib/hostsharing/hsadmin/hsscript-full.jar "$@"