Files
openstreetmap-mod_tile-pyth…/debian/libapache2-mod-tile.postinst
Frederik Ramm 5cf79c858b automatically add new munin plugins to munin if these packages are installed on a system that has munin on it.
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!
2009-10-20 18:01:26 +00:00

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