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

Show download link

This commit is contained in:
Jan Schneider 2018-01-23 23:26:04 +01:00
parent ee2965c91a
commit 48b1d37e7a

View File

@ -25,7 +25,7 @@ if {[info exists env(QUERY_STRING)]} {
regexp {cmd=([^&]+)} $env(QUERY_STRING) match cmd
}
if {$cmd == "download"} {
puts "<html><head><meta http-equiv=\"refresh\" content=\"0; url=${package_url}\" /></head></html>"
puts "<html><head><meta http-equiv=\"refresh\" content=\"0; url=${package_url}\" /></head><body><a href=\"${package_url}\">${package_url}</a></body></html>"
} else {
puts [exec /usr/bin/wget -q --no-check-certificate -O- "${version_url}"]
}