1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

Call update cgi via wget not directly

This commit is contained in:
Jan Schneider 2018-03-13 23:03:59 +01:00
parent 99fa872173
commit 3a9c118d83

View File

@ -1254,8 +1254,9 @@ proc ::rmupdate::get_addon_info {{fetch_available_version 0} {fetch_download_url
set addons(${id}::${keyl}) $value set addons(${id}::${keyl}) $value
if {$keyl == "update" && $fetch_available_version == 1} { if {$keyl == "update" && $fetch_available_version == 1} {
catch { catch {
set cgi "${addons_www_dir}/[string range $value 8 end]" #set cgi "${addons_www_dir}/[string range $value 8 end]"
set available_version [exec tclsh "$cgi"] #set available_version [exec tclsh "$cgi"]
set available_version [exec /usr/bin/wget "http://localhost${value}" --quiet --output-document=-]
set addons(${id}::available_version) $available_version set addons(${id}::available_version) $available_version
} }
} }