summarylogtreecommitdiffstats
path: root/karaf_wrapper.sh
blob: 0017e194e7d98de7356aec0d4fcce09889459e77 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
if [[ -z "${JAVA_HOME}" ]]; then
    JAVA_HOME_DETECTED=$(archlinux-java-run --min 11 --max 11 --java-home)
    if (( $? == 0 )); then
        export JAVA_HOME=${JAVA_HOME_DETECTED}
    fi
fi
exec /usr/share/openhab3/runtime/bin/karaf "${@}"