aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-makewebreport
blob: 6d1e9a29252dd3e15bd46496786a5805a3c53518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# Make simple web page with summary information.  This should be rewritten
# to use some template system and be more flexible.
#

(
cat <<EOF
<html>
<head>
<title>sitesummary report</title>
</head>
<body>
<h1>sitesummary report</h1>
<pre>
EOF

for f in site-summary \
    hostclass-summary \
    kernelversion-summary \
    agesinceseen-summary \
    debian_edu-summary ; do
    echo "$f:"
    /usr/lib/sitesummary/$f
    echo
done

date
cat <<EOF
</pre>
</body>
</html>
EOF
) > /var/lib/sitesummary/www/index.html

exit 0