mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-23 14:05:16 +00:00
Omada - AVX-only support
Discontinue support for non-AVX CPUs in Omada installation scripts, exiting with an error if AVX is not detected. Simplify Java installation by using a setup_java function and remove manual Azul Zulu Java installation steps. Update default Omada version from 13 to 12 in scripts and JSON config. Replace manual cleanup steps with cleanup_lxc.
This commit is contained in:
@@ -17,23 +17,15 @@ msg_info "Installing Dependencies"
|
||||
$STD apt install -y jsvc
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Checking CPU Features"
|
||||
JAVA_VERSION=21 setup_java
|
||||
|
||||
if lscpu | grep -q 'avx'; then
|
||||
MONGODB_VERSION="8.0"
|
||||
msg_ok "AVX detected: Using MongoDB 8.0"
|
||||
MONGO_VERSION="8.0" setup_mongodb
|
||||
else
|
||||
MONGO_VERSION="4.4" setup_mongodb
|
||||
msg_error "No AVX detected (CPU-Flag)! We have discontinued support for this. You are welcome to try it manually with a Debian LXC, but due to the many issues with Omada, we currently only support AVX CPUs."
|
||||
exit 10
|
||||
fi
|
||||
|
||||
msg_info "Installing Azul Zulu Java"
|
||||
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xB1998361219BD9C9" -o "/etc/apt/trusted.gpg.d/zulu-repo.asc"
|
||||
curl -fsSL "https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb" -o zulu-repo.deb
|
||||
$STD dpkg -i zulu-repo.deb
|
||||
$STD apt update
|
||||
$STD apt -y install zulu21-jre-headless
|
||||
msg_ok "Installed Azul Zulu Java"
|
||||
|
||||
|
||||
if ! dpkg -l | grep -q 'libssl1.1'; then
|
||||
msg_info "Installing libssl (if needed)"
|
||||
@@ -50,14 +42,9 @@ OMADA_URL=$(curl -fsSL "https://support.omadanetworks.com/en/download/software/o
|
||||
OMADA_PKG=$(basename "$OMADA_URL")
|
||||
curl -fsSL "$OMADA_URL" -o "$OMADA_PKG"
|
||||
$STD dpkg -i "$OMADA_PKG"
|
||||
rm -rf "$OMADA_PKG"
|
||||
msg_ok "Installed Omada Controller"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
|
||||
msg_info "Cleaning up"
|
||||
rm -rf "$OMADA_PKG" zulu-repo.deb
|
||||
$STD apt -y autoremove
|
||||
$STD apt -y autoclean
|
||||
$STD apt -y clean
|
||||
msg_ok "Cleaned"
|
||||
cleanup_lxc
|
||||
|
||||
Reference in New Issue
Block a user