Skip to content

Commit

Permalink
Update system upgrade to fix broken Java installs
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Jan 24, 2022
1 parent de5ab9d commit 80e3403
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/system.bash
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ system_upgrade() {
export DEBIAN_FRONTEND=noninteractive
# 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; then echo "FAILED (install java)"; fi
fi
unset DEBIAN_FRONTEND
}

Expand Down

0 comments on commit 80e3403

Please sign in to comment.