Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/582088fc90b41476128d94035cba857429ab3e24?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
15 additions and
4 deletions
@ -53,11 +53,22 @@ function default_settings() {
function update_script( ) {
header_info
if [ [ ! -d /opt/tplink ] ] ; then msg_error " No ${ APP } Installation Found! " ; exit; fi
msg_info " Updating ${ APP } LXC "
apt-get update & >/dev/null
apt-get -y upgrade & >/dev/null
msg_ok "Updated Successfully"
latesturl = $( curl -fsSL "https://www.tp-link.com/us/support/download/omada-software-controller/" | grep -o 'https://.*x64.deb' | head -n1)
latestversion = $( basename " $latesturl " | sed -e 's/.*ller_v//;s/_Li.*//' )
installed_version = $( dpkg -l | grep omada | awk '{print $3}' )
if [ " $installed_version " = " $latestversion " ] ; then
echo " Installed version ( $installed_version ) is the same as the latest version ( $latestversion ). "
echo "Omada is already up to date"
exit
else
echo -e " Updating Omada Controller to v ${ latestversion } "
wget -qL ${ latesturl }
dpkg -i Omada_SDN_Controller_v${ latestversion } _Linux_x64.deb
rm -rf Omada_SDN_Controller_v${ latestversion } _Linux_x64.deb
echo -e " Updated Omada Controller to v ${ latestversion } "
exit
fi
}
start