aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-23 13:11:26 +1000
committeronefang2019-12-23 13:11:26 +1000
commitc71011256ad9f77e478a6c74dcafdb246bb2a05b (patch)
tree00918efff8918c2a913193e9155911bca495c240
parentConsistant lack of capitals. (diff)
downloadapt-panopticon-c71011256ad9f77e478a6c74dcafdb246bb2a05b.zip
apt-panopticon-c71011256ad9f77e478a6c74dcafdb246bb2a05b.tar.gz
apt-panopticon-c71011256ad9f77e478a6c74dcafdb246bb2a05b.tar.bz2
apt-panopticon-c71011256ad9f77e478a6c74dcafdb246bb2a05b.tar.xz
Auto refresh web report.
Diffstat (limited to '')
-rw-r--r--apt-panopticommon.lua6
-rwxr-xr-xapt-panopticon-report-email-web.lua14
2 files changed, 16 insertions, 4 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua
index 6aabfee..99dbeaf 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -61,6 +61,12 @@ APT.options =
61 help = "", 61 help = "",
62 value = 3, 62 value = 3,
63 }, 63 },
64 refresh =
65 {
66 typ = "number",
67 help = "",
68 value = 300,
69 },
64 retries = 70 retries =
65 { 71 {
66 typ = "number", 72 typ = "number",
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua
index a30979d..cdfa5bd 100755
--- a/apt-panopticon-report-email-web.lua
+++ b/apt-panopticon-report-email-web.lua
@@ -310,11 +310,17 @@ faulty = ""
310APT.html = true 310APT.html = true
311local web, e = io.open("results/Report-web.html", "w+") 311local web, e = io.open("results/Report-web.html", "w+")
312if nil == web then C("opening mirrors file - " .. e) else 312if nil == web then C("opening mirrors file - " .. e) else
313 web:write( "<html><head><title>apt-panopticon results</title>\n" .. 313 web:write( "<html><head><title>apt-panopticon results</title>\n")
314 '</head><body bgcolor="black" text="white">' .. 314 if 0 < APT.options.refresh.value then
315 web:write('<meta http-equiv="refresh" content="' .. APT.options.refresh.value .. '">\n')
316 end
317 web:write( '</head><body bgcolor="black" text="white">' ..
315 "<h1>Welcome to the apt-panopticon results page.</h1>\n" .. 318 "<h1>Welcome to the apt-panopticon results page.</h1>\n" ..
316 "<p>This is the status of the mirror servers in the Devuan package mirror network.</p>\n" .. 319 "<p>This is the status of the mirror servers in the Devuan package mirror network.</p>\n")
317 "<p><font style='background-color:red; color:black'>EXPERIMENTAL CODE - double check all results you see here, and read the logs if it's important.</font></p>" .. 320 if 0 < APT.options.refresh.value then
321 web:write( '<p>This page will refresh every ' .. (APT.options.refresh.value / 60) .. ' minutes.</p>')
322 end
323 web:write( "<p><font style='background-color:red; color:black'>EXPERIMENTAL CODE - double check all results you see here, and read the logs if it's important.</font></p>" ..
318 "<p>The full list of Devuan package mirrors is available at the URL: " .. 324 "<p>The full list of Devuan package mirrors is available at the URL: " ..
319 "<a href='https://pkgmaster.devuan.org/mirror_list.txt'>https://pkgmaster.devuan.org/mirror_list.txt</a></p>\n" .. 325 "<a href='https://pkgmaster.devuan.org/mirror_list.txt'>https://pkgmaster.devuan.org/mirror_list.txt</a></p>\n" ..
320 "<p>Due to the nature of the tests, some errors or warnings will be counted several times. &nbsp; " .. 326 "<p>Due to the nature of the tests, some errors or warnings will be counted several times. &nbsp; " ..