Install on debian with java 11

I worked my way around java 11 vs 8 , I read stardog works with java 11 so I patched the pkg (after i set up the deb repo) , does this look sane ? :wink:
cat /etc/apt/sources.list.d/stardog.list

This file is managed by Puppet. DO NOT EDIT.

stardog repo debian

deb stable main

fix the deb script:

set e
TMP_DIR=`mktemp -d`
cleanup() {
        cd ${STARTDIR}
        echo start dir ${STARTDIR}
        echo clean up $TMP_DIR;
        if [ -d $TMP_DIR ];then rm -rf $TMP_DIR;else echo no temp dir;fi
fix() {
        cd $TMP_DIR
        echo `pwd`
        apt-get download stardog &&\
        dpkg-deb -x stardog_7.7.2_amd64.deb PackageFolder &&\
        dpkg-deb --control stardog_7.7.2_amd64.deb PackageFolder/DEBIAN
        sed -i 's/openjdk-8-jre/openjdk-11-jre/' PackageFolder/DEBIAN/control
        cat PackageFolder/DEBIAN/control
        echo "Patched java version to 11"
build_pkg() {
        dpkg -b PackageFolder ${STARTDIR}/stardog7_7.7.2_amd64.deb;
fix && build_pkg

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.