Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 034289db62a2b82e44ca64505a56373c > scriptlet

nagios-3.0.2-0.1mdv2008.0.x86_64.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