#!/bin/bash
# CCacheMunin -- plugin to show CCache statistics in Munin
# (C) 2016 Stephane Charette <stephanecharette@gmail.com>
# $Id: postinst 1694 2016-03-14 09:02:37Z stephane $


if [ -x "$(which munin-node-configure)" ]; then
	# configure munin plugins
	service munin-node stop
	munin-node-configure --suggest --families auto,manual,contrib,snmpauto --shell 2>/dev/null | sh
	ls -l /etc/munin/plugins/ccache-*
	service munin-node start
fi


exit 0
