Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > b3e0f2408b6e7b2b763edf49cf596f18 > scriptlet

munin-node-1.4.7-5.fc15.noarch.rpm

PREIN

/bin/sh
getent group munin >/dev/null || groupadd -r munin
getent passwd munin >/dev/null || \
useradd -r -g munin -d /var/lib/munin -s /sbin/nologin \
    -c "Munin user" munin
exit 0

PREUN

/bin/sh
test "$1" != 0 || /etc/rc.d/init.d/munin-node stop &>/dev/null || :
test "$1" != 0 || /sbin/chkconfig --del munin-node

POSTIN

/bin/sh
# sysvinit only in f15 and older and epel
/sbin/chkconfig --add munin-node
# Only run configure on a new install, not an upgrade.
if [ "$1" = "1" ]; then
     /usr/sbin/munin-node-configure --shell 2> /dev/null | sh >& /dev/null || :
fi

POSTUN

/bin/sh
if [ "$1" = "0" ]; then
     find /etc/munin/plugins/ -maxdepth 1 -type l -print0 |xargs -0 rm || :
fi

Triggers

munin-node < 1.4.7-2

/bin/sh
mv -f /etc/munin/plugins /etc/munin/plugins.bak || :

munin-node < 1.4.7-2

/bin/sh
mv -f /etc/munin/plugins.bak /etc/munin/plugins || :

#
# main package scripts
#