blob: b0219b90eb0beaab383fde0a62eab27b725619c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
POOLPAGE=/usr/local/www/data/status
TEMPLATESDIR=/usr/local/www/data/scripts/templates
cd $POOLPAGE
cat /dev/null > out.template
for X in `cat /usr/local/www/data/rrd/list-of-systems`
do
sed -e s/POOL/$X/g $TEMPLATESDIR/template >> out.template
done
sync
cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > index.html
rm -f out.template
|