various scripts: use ensure_dependencies instead of apt (#11463)

* refactor(ct): replace apt install with ensure_dependencies in update_script functions

* refactor(ct): replace remaining apt install with ensure_dependencies

* refactor(ct): replace remaining apt install with ensure_dependencies

* refactor(ct): remove redundant dpkg checks before ensure_dependencies

* refactor(ct): remove ALL redundant checks before ensure_dependencies

* Update neo4j.sh
This commit is contained in:
CanbiZ (MickLesk)
2026-02-02 13:01:17 +01:00
committed by GitHub
parent ac74b760f0
commit 7fc77fe5be
27 changed files with 33 additions and 99 deletions

View File

@@ -27,9 +27,8 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
if ! dpkg -l | grep -q temurin-21-jre; then
JAVA_VERSION="21" setup_java
fi
JAVA_VERSION="21" setup_java
msg_info "Updating ${APP}"
$STD apt update
$STD apt -y upgrade