Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 4734536f6e303dbd4fd620f36d99e6a0 > scriptlet

nagios-3.2.3-2.1.mga1.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