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


if [ "$1" = upgrade ]; then
	# nothing (yet!) to do in postrm for upgrades
	true
fi


if [ "$1" = remove -o "$1" = abort-install -o "$1" = disappear ]; then
	# remove plugin from munin
	service munin-node stop
	rm -f /etc/munin/plugins/ccache-*
	service munin-node start
fi


exit 0
