Skip to content

Commit 05d4db8

Browse files
authored
Fix download url (#3245)
1 parent 600607d commit 05d4db8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ct/omada.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function update_script() {
4343
msg_ok "Updated MongoDB to $MONGODB_VERSION"
4444

4545
msg_info "Updating Omada Controller"
46-
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)
46+
latest_url=$(curl -s "https://support.omadanetworks.com/en/download/software/omada-controller/" | grep -o 'https://static\.tp-link\.com/upload/software/[^"]*linux_x64[^"]*\.deb' | head -n 1)
4747
latest_version=$(basename "$latest_url")
4848
if [ -z "${latest_version}" ]; then
4949
msg_error "It seems that the server (tp-link.com) might be down. Please try again at a later time."

install/omada-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ $STD apt-get install -y mongodb-org
5555
msg_ok "Installed MongoDB $MONGODB_VERSION"
5656

5757
msg_info "Installing Omada Controller"
58-
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)
58+
latest_url=$(curl -s "https://support.omadanetworks.com/en/download/software/omada-controller/" | grep -o 'https://static\.tp-link\.com/upload/software/[^"]*linux_x64[^"]*\.deb' | head -n 1)
5959
latest_version=$(basename "$latest_url")
6060

6161
wget -qL ${latest_url}

0 commit comments

Comments
 (0)