hsscript and java17

This commit is contained in:
Peter Hormanns 2023-11-16 14:29:45 +01:00
parent 3140a373a1
commit 39aee47937
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,5 @@
#!/bin/bash
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_HOME=/usr/lib/jvm/java-17-openjdk-amd64
ls /usr/lib/jvm/java-11-openjdk-amd64 >/dev/null 2>&1 && JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
JAVA=$JAVA_HOME/bin/java
JVM_ARGS="-Dnashorn.args=--no-deprecation-warning"
exec $JAVA $JVM_ARGS -jar /usr/local/lib/hostsharing/hsadmin/hsscript-full.jar "$@"
exec $JAVA $JVM_ARGS -jar /usr/local/lib/hostsharing/hsadmin/hsscript-full.jar "$@"

View File

@ -3,7 +3,7 @@ Version: [[version]]
Section: misc
Priority: optional
Architecture: all
Depends: default-jre
Depends: openjdk-11-jre | openjdk-17-jre
Maintainer: Peter Hormanns <peter.hormanns@hostsharing.net>
Description: hostsharing command and scripting shell
Distribution: hostsharing