diff --git a/functions/system.bash b/functions/system.bash index 208f7a415..b6d9dd92e 100644 --- a/functions/system.bash +++ b/functions/system.bash @@ -23,7 +23,7 @@ system_upgrade() { # bad packages may require interactive input despite of this setting so do not mask output (no cond_redirect) if ! apt-get upgrade --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"; then echo "FAILED"; return 1; fi if ! cond_redirect java -version &> /dev/null; then - if ! java_install "${java_opt:-11}"; then echo "FAILED (install java)"; fi + if ! update_config_java "11" && java_install "11"; then echo "FAILED (install java)"; fi fi unset DEBIAN_FRONTEND }