diff options
Diffstat (limited to '')
-rw-r--r-- | README.md | 31 | ||||
-rwxr-xr-x | apt-panopticon-report-email-web.lua | 3 | ||||
-rw-r--r-- | apt-panopticron | 2 | ||||
-rwxr-xr-x | update_apt-panopticon | 16 |
4 files changed, 51 insertions, 1 deletions
@@ -43,6 +43,37 @@ installed - | |||
43 | * rrdtool, may need to include lua-rrd. | 43 | * rrdtool, may need to include lua-rrd. |
44 | * xz, on Debian based systems it'll be in the xz-utils package. | 44 | * xz, on Debian based systems it'll be in the xz-utils package. |
45 | 45 | ||
46 | If you want to have lots of graphs, also install | ||
47 | [https://sledjhamr.org/cgit/apt-panopticon_cgp/](https://sledjhamr.org/cgit/apt-panopticon_cgp/). | ||
48 | |||
49 | Web installation. | ||
50 | ----------------- | ||
51 | |||
52 | This is a suggestion for installation on a Devuan based web server. | ||
53 | |||
54 | Create - | ||
55 | |||
56 | /var/www/html/apt-panopticon | ||
57 | |||
58 | Install apt-panopticon and apt-panopticon_cgp there, so you end up with - | ||
59 | |||
60 | /var/www/html/apt-panopticon/apt-panopticon | ||
61 | /var/www/html/apt-panopticon/apt-panopticon_cgp | ||
62 | |||
63 | The script update_apt-panopticon is an example script for updating | ||
64 | everything, including commented out commands to update the source code. | ||
65 | The file apt-panopticron is an example crontab file for updating | ||
66 | everything once every ten minutes. They assume your web server user is | ||
67 | www-data with a group of www-data, and you have a mirror user called | ||
68 | mirrors. For mirror operators, that mirrors user would be the owner of | ||
69 | the mirror files. You can change these to suite yourself. | ||
70 | |||
71 | Once everything is updated, | ||
72 | /var/www/html/apt-panopticon/results/Report-web.html | ||
73 | |||
74 | will point to the main web page, and there will be a link at the bottom of | ||
75 | that pointing to the detailed graphs. | ||
76 | |||
46 | Using it. | 77 | Using it. |
47 | --------- | 78 | --------- |
48 | 79 | ||
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index 7d4b0fc..154aa99 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua | |||
@@ -429,8 +429,9 @@ if nil == web then C("opening mirrors file - " .. e) else | |||
429 | "pkgmaster.devuan.org is the master mirror, all the others sync to it. " .. | 429 | "pkgmaster.devuan.org is the master mirror, all the others sync to it. " .. |
430 | "</p>\n" | 430 | "</p>\n" |
431 | ) | 431 | ) |
432 | web:write( "\n<br>\n<hr>\n\n" .. | ||
433 | web:write(APT.dumpTableHTML(m, "", "")) | 432 | web:write(APT.dumpTableHTML(m, "", "")) |
433 | web:write( "\n<br>\n<br>\n<h2>==== Graphs: ====</h2>\n" .. | ||
434 | "<img src='speed.png'>\n<br>\n<p><a href='../apt-panopticon_cgp/'>More graphs.</a></p><hr>\n\n" .. | ||
434 | "<p>The <a href='Report-email.txt'>email report</a>. " .. | 435 | "<p>The <a href='Report-email.txt'>email report</a>. " .. |
435 | "All <a href='../results'>the logs and other output</a>. " .. | 436 | "All <a href='../results'>the logs and other output</a>. " .. |
436 | "You can get the <a href='https://sledjhamr.org/cgit/apt-panopticon/about/'>source code here</a>.</p>" .. | 437 | "You can get the <a href='https://sledjhamr.org/cgit/apt-panopticon/about/'>source code here</a>.</p>" .. |
diff --git a/apt-panopticron b/apt-panopticron new file mode 100644 index 0000000..204a516 --- /dev/null +++ b/apt-panopticron | |||
@@ -0,0 +1,2 @@ | |||
1 | # Mirror tests every 10 minutes everyday | ||
2 | */10 * * * * www-data /var/www/html/apt-panopticon/apt-panopticon/update_apt-panopticon | ||
diff --git a/update_apt-panopticon b/update_apt-panopticon new file mode 100755 index 0000000..b70f4c3 --- /dev/null +++ b/update_apt-panopticon | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | cd /var/www/html/apt-panopticon/apt-panopticon_cgp | ||
4 | #git pull > /dev/null | ||
5 | #chown -R mirrors:www-data * | ||
6 | cd /var/www/html/apt-panopticon/apt-panopticon | ||
7 | #git pull > /dev/null | ||
8 | #chown -R mirrors:www-data * | ||
9 | |||
10 | if [ ! -f apt-panopticon.lock ] ; then | ||
11 | rm ../results; ln -s apt-panopticon/results_old ../results | ||
12 | flock -n apt-panopticon.lock ./apt-panopticon.lua && rm apt-panopticon.lock | ||
13 | rm ../results; ln -s apt-panopticon/results ../results | ||
14 | fi | ||
15 | |||
16 | #chown -R mirrors:www-data /var/www/html/SledjHamr/apt-panopticon/results | ||