mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2026-01-19 09:28:14 +00:00
if anyone knows how to make it so that the plugins get activated when a munin-node is installed *later*, that would obviously be even cooler!
18 lines
348 B
Bash
18 lines
348 B
Bash
#!/bin/sh
|
|
|
|
mkdir -p /var/lib/mod_tile
|
|
chown www-data:www-data /var/lib/mod_tile
|
|
|
|
# automatically install munin plugins if munin is present.
|
|
if [ -d /etc/munin/plugins ]
|
|
then
|
|
cd /etc/munin/plugins
|
|
for i in /usr/share/munin/plugins/mod_tile*
|
|
do
|
|
if [ ! -h `basename $i` ]
|
|
then
|
|
ln -s $i .
|
|
fi
|
|
done
|
|
fi
|