mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-20 20:45:15 +00:00
Compare commits
2 Commits
update_ver
...
omada_remo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b26ad4dcb9 | ||
|
|
e404a1213c |
16
ct/omada.sh
16
ct/omada.sh
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
|
|||||||
var_ram="${var_ram:-3072}"
|
var_ram="${var_ram:-3072}"
|
||||||
var_disk="${var_disk:-8}"
|
var_disk="${var_disk:-8}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-13}"
|
var_version="${var_version:-12}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
@@ -32,19 +32,11 @@ function update_script() {
|
|||||||
if lscpu | grep -q 'avx'; then
|
if lscpu | grep -q 'avx'; then
|
||||||
MONGO_VERSION="8.0" setup_mongodb
|
MONGO_VERSION="8.0" setup_mongodb
|
||||||
else
|
else
|
||||||
msg_warn "No AVX detected: Using older MongoDB 4.4"
|
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."
|
||||||
MONGO_VERSION="4.4" setup_mongodb
|
exit 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Checking if right Azul Zulu Java is installed"
|
JAVA_VERSION="21" setup_java
|
||||||
java_version=$(java -version 2>&1 | awk -F[\"_] '/version/ {print $2}')
|
|
||||||
if [[ "$java_version" =~ ^1\.8\.* ]]; then
|
|
||||||
$STD apt remove --purge -y zulu8-jdk
|
|
||||||
$STD apt -y install zulu21-jre-headless
|
|
||||||
msg_ok "Updated Azul Zulu Java to 21"
|
|
||||||
else
|
|
||||||
msg_ok "Azul Zulu Java 21 already installed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Updating Omada Controller"
|
msg_info "Updating Omada Controller"
|
||||||
OMADA_URL=$(curl -fsSL "https://support.omadanetworks.com/en/download/software/omada-controller/" |
|
OMADA_URL=$(curl -fsSL "https://support.omadanetworks.com/en/download/software/omada-controller/" |
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"ram": 3072,
|
"ram": 3072,
|
||||||
"hdd": 8,
|
"hdd": 8,
|
||||||
"os": "debian",
|
"os": "debian",
|
||||||
"version": "13"
|
"version": "12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -17,24 +17,15 @@ msg_info "Installing Dependencies"
|
|||||||
$STD apt install -y jsvc
|
$STD apt install -y jsvc
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Checking CPU Features"
|
JAVA_VERSION="21" setup_java
|
||||||
|
|
||||||
if lscpu | grep -q 'avx'; then
|
if lscpu | grep -q 'avx'; then
|
||||||
MONGODB_VERSION="8.0"
|
|
||||||
msg_ok "AVX detected: Using MongoDB 8.0"
|
|
||||||
MONGO_VERSION="8.0" setup_mongodb
|
MONGO_VERSION="8.0" setup_mongodb
|
||||||
else
|
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
|
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
|
if ! dpkg -l | grep -q 'libssl1.1'; then
|
||||||
msg_info "Installing libssl (if needed)"
|
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"
|
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"
|
||||||
@@ -50,14 +41,9 @@ OMADA_URL=$(curl -fsSL "https://support.omadanetworks.com/en/download/software/o
|
|||||||
OMADA_PKG=$(basename "$OMADA_URL")
|
OMADA_PKG=$(basename "$OMADA_URL")
|
||||||
curl -fsSL "$OMADA_URL" -o "$OMADA_PKG"
|
curl -fsSL "$OMADA_URL" -o "$OMADA_PKG"
|
||||||
$STD dpkg -i "$OMADA_PKG"
|
$STD dpkg -i "$OMADA_PKG"
|
||||||
|
rm -rf "$OMADA_PKG"
|
||||||
msg_ok "Installed Omada Controller"
|
msg_ok "Installed Omada Controller"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
cleanup_lxc
|
||||||
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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user