Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f6ab4890f7db979d9a21c3632819c289 > scriptlet

nagios-3.2.0-3mdv2010.0.i586.rpm

PREIN

/bin/sh
/usr/sbin/useradd -r -M -s /bin/sh -d /var/log/nagios -c "system user for nagios" nagios >/dev/null 2>&1 || :
/usr/bin/gpasswd -a apache nagios >/dev/null 2>&1 || :

PREUN

/bin/sh
/usr/share/rpm-helper/del-service nagios $1 nagios

POSTIN

/bin/sh
if [ $1 = 1 ] ; then
    chown -R nagios:nagios /var/log/nagios /var/spool/nagios /var/run/nagios >/dev/null 2>&1 || :
fi
/usr/share/rpm-helper/add-service nagios $1 nagios

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
    /etc/rc.d/init.d/nagios condrestart >/dev/null 2>&1 || :
fi	
/usr/share/rpm-helper/del-user nagios $1 nagios