From a25225fef582be63811aa617121f3b52a43ce156 Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Sat, 20 Mar 2021 17:35:32 +0100 Subject: [type/__dtnrch_etax_sgnp] Force system JVM (i.e. remove bundled JRE) when --use-system-jvm is set --- type/__dtnrch_etax_sgnp/manifest | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'type') diff --git a/type/__dtnrch_etax_sgnp/manifest b/type/__dtnrch_etax_sgnp/manifest index 86b1c6d..1d273f5 100755 --- a/type/__dtnrch_etax_sgnp/manifest +++ b/type/__dtnrch_etax_sgnp/manifest @@ -144,6 +144,8 @@ then "${java_min_ver}" "${jvm_ver:-none}" >&2 exit 1 } + + set_jre_symlink=true fi if test -s "${__object:?}/parameter/install-dir" @@ -170,6 +172,24 @@ __dtnrch_install4j "${install_dir}" \ --state "${state_should}" \ --installer "${remote_file}" "$@" +if ${set_jre_symlink:-false} +then + require="__dtnrch_install4j${install_dir}" \ + __file "${install_dir:?}/.install4j/pref_jre.cfg" \ + --state "${state_should}" \ + --owner 0 --group 0 --mode 0644 \ + --source - <<-EOF + ${jvm_path:?} + EOF + + # __link "${install_dir:?}/jre" \ + # --state "${state_should}" \ + # --type symbolic \ + # --source "${jvm_path:?}" + require="__file${install_dir:?}/.install4j/pref_jre.cfg" \ + __directory "${install_dir:?}/jre" --state absent +fi + export require="__dtnrch_install4j${install_dir}" -- cgit v1.2.3