[munin] Cleanup dangling symlinks found in the plugins directory after node uninstall.
fenris02
fenris02 at fedoraproject.org
Tue Aug 30 01:08:14 UTC 2011
commit 87f33639f9effc5ca364b44e3c288fa6bcafe594
Author: D. Johnson <fenris02 at fedoraproject.org>
Date: Mon Aug 29 20:07:02 2011 -0500
Cleanup dangling symlinks found in the plugins directory after node
uninstall.
munin.spec | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/munin.spec b/munin.spec
index af8dc09..c47d6f6 100644
--- a/munin.spec
+++ b/munin.spec
@@ -1,6 +1,6 @@
Name: munin
Version: 1.4.6
-Release: 4%{?dist}.1
+Release: 4%{?dist}.2
Summary: Network-wide graphing framework (grapher/gatherer)
License: GPLv2 and Bitstream Vera
Group: System Environment/Daemons
@@ -249,6 +249,9 @@ test "$1" != 0 || %{_initrddir}/munin-node stop &>/dev/null || :
test "$1" != 0 || /sbin/chkconfig --del munin-node
%endif
+%postun node
+find /etc/munin/plugins/ -maxdepth 1 -type l -print0 |xargs -0 rm
+
#
# main package scripts
#
More information about the scm-commits
mailing list