Quote JAVA_VERSION assignment in scripts

Changed JAVA_VERSION=21 to JAVA_VERSION="21" in omada.sh and omada-install.sh to ensure the variable is treated as a string. This improves consistency and prevents potential issues with variable usage.
This commit is contained in:
CanbiZ
2025-11-20 08:37:13 +01:00
parent e404a1213c
commit b26ad4dcb9
2 changed files with 2 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ function update_script() {
exit 10
fi
JAVA_VERSION=21 setup_java
JAVA_VERSION="21" setup_java
msg_info "Updating Omada Controller"
OMADA_URL=$(curl -fsSL "https://support.omadanetworks.com/en/download/software/omada-controller/" |

View File

@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
$STD apt install -y jsvc
msg_ok "Installed Dependencies"
JAVA_VERSION=21 setup_java
JAVA_VERSION="21" setup_java
if lscpu | grep -q 'avx'; then
MONGO_VERSION="8.0" setup_mongodb
@@ -26,7 +26,6 @@ else
exit 10
fi
if ! dpkg -l | grep -q 'libssl1.1'; then
msg_info "Installing libssl (if needed)"
curl -fsSL "https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u4_amd64.deb" -o "/tmp/libssl.deb"