Omada: Switch Base-URL to prevent issues (#1135)

* fix path for omada update

* fix omada install
This commit is contained in:
CanbiZ
2024-12-31 14:44:01 +01:00
committed by GitHub
parent 72f844ddc6
commit af4b833aa4
2 changed files with 2 additions and 6 deletions

View File

@ -32,9 +32,7 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
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_url=$(curl -s "https://www.vigi.com/de/support/download/omada-software-controller/" | grep -o 'https://static\.tp-link\.com/upload/software/[^"]*linux_x64[^"]*\.deb' | head -n 1)
latest_version=$(basename "$latest_url")
if [ -z "${latest_version}" ]; then
msg_error "It seems that the server (tp-link.com) might be down. Please try again at a later time."