Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > fb6197b3913344c92f482635755719ac > scriptlet

munin-node-2.0.10-1.fc16.noarch.rpm

PREIN

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

PREUN

/bin/sh
# Newer installs use systemd
    if [ "$1" = 0 ]; then
      for svc in node ; do
        /bin/systemctl --no-reload disable munin-${svc}.service >/dev/null 2>&1 || :
        /bin/systemctl stop munin-${svc}.service >/dev/null 2>&1 || :
      done
    fi

POSTIN

/bin/sh
# sysvinit only in f15 and older and epel
# 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
  [ -d /etc/munin/plugins ] && \
    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
#