diff options
| author | Dennis Camera <cdist@dtnr.ch> | 2021-03-20 17:35:32 +0100 |
|---|---|---|
| committer | Dennis Camera <cdist@dtnr.ch> | 2021-03-20 20:32:45 +0100 |
| commit | a25225fef582be63811aa617121f3b52a43ce156 (patch) | |
| tree | 22a570936a9457ae3f0c251ad6561ea865ddcb31 /type | |
| parent | 5b3b0e798443f36681e688a5cfaa4ec9816ef61b (diff) | |
| download | __dtnrch_egov-a25225fef582be63811aa617121f3b52a43ce156.tar.gz __dtnrch_egov-a25225fef582be63811aa617121f3b52a43ce156.zip | |
[type/__dtnrch_etax_sgnp] Force system JVM (i.e. remove bundled JRE) when --use-system-jvm is set
Diffstat (limited to 'type')
| -rwxr-xr-x | type/__dtnrch_etax_sgnp/manifest | 20 |
1 files changed, 20 insertions, 0 deletions
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}" |
