Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/6112e4ae33841f42bbbe90c3f8e2cda8763de1c3?style=split&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Update omada.sh

more tweaks
pull/1679/head
tteckster 2 years ago committed by GitHub
parent 4613129d28
commit 6112e4ae33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,14 +56,15 @@ if [[ ! -d /opt/tplink ]]; then msg_error "No ${APP} Installation Found!"; exit;
latest_url=$(curl -fsSL "https://www.tp-link.com/us/support/download/omada-software-controller/" | grep -o 'https://.*x64.deb' | head -n1) latest_url=$(curl -fsSL "https://www.tp-link.com/us/support/download/omada-software-controller/" | grep -o 'https://.*x64.deb' | head -n1)
latest_version=$(basename "${latest_url}" | sed -e 's/.*ller_//;s/_Li.*//') latest_version=$(basename "${latest_url}" | sed -e 's/.*ller_//;s/_Li.*//')
if [ -z "${latest_version}" ]; then if [ -z "${latest_version}" ]; then
echo "It seems that the server (tp-link.com) might be down. Please try again at a later time." msg_error "It seems that the server (tp-link.com) might be down. Please try again at a later time."
exit exit
fi fi
installed_version=$(dpkg -l | grep omada | awk '{print $3}') installed_version=$(dpkg -l | grep omada | awk '{print $3}')
if [ "v${installed_version}" = "${latest_version}" ]; then if [ "v${installed_version}" = "${latest_version}" ]; then
echo "Installed version (v${installed_version}) is the same as the latest version (${latest_version})." msg_info "Installed version (v${installed_version}) is the same as the latest version (${latest_version})"
echo "Omada Controller is already up to date" sleep 2
msg_ok "Omada Controller is already up to date"
exit exit
else else
echo -e "Updating Omada Controller to ${latest_version}" echo -e "Updating Omada Controller to ${latest_version}"

Loading…
Cancel
Save

Powered by BW's shoe-string budget.