summarylogtreecommitdiffstats
path: root/karaf_wrapper.sh
blob: 58efe67a206ee97670cc266d7bff2f65277dc653 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
if [[ -z "${JAVA_HOME}" ]]; then
    JAVA_HOME_DETECTED=$(archlinux-java-run -a 8 -b 8 -j)
    if (( $? == 0 )); then
        export JAVA_HOME=${JAVA_HOME_DETECTED}
    fi
fi
exec /usr/share/openhab2/runtime/bin/karaf "${@}"