From e715adf3ba2f87f0195e51147d7486dae515e594 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:49:28 +0100 Subject: [PATCH] Update omada-install.sh --- install/omada-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/omada-install.sh b/install/omada-install.sh index 6cb1eb00..e29372fc 100644 --- a/install/omada-install.sh +++ b/install/omada-install.sh @@ -38,7 +38,9 @@ wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiv $STD dpkg -i mongodb-org-server_3.6.23_amd64.deb msg_ok "Installed MongoDB" -latest_url=$(curl -fsSL "https://www.tp-link.com/en/support/download/omada-software-controller/" | grep -oP 'href="([^"]+linux_x64[^"]+\.deb)' | sed 's/href="//' | sort | tail -n 1) +latest_url=$(curl -s "https://support.omadanetworks.com/en/product/omada-software-controller/?resourceType=download" | \ +grep -o 'https://static\.tp-link\.com/upload/software/[^"]*linux_x64[^"]*\.deb' | \ +head -n 1) latest_version=$(basename "$latest_url") msg_info "Installing Omada Controller"