Sophie

Sophie

distrib > Fedora > 15 > x86_64 > media > os > by-pkgid > 21fbaff7707242fce2f5252bc7f6e30b > scriptlet

clamsmtp-1.10-2.fc15.x86_64.rpm

PREIN

/bin/sh
getent passwd clamsmtp >/dev/null || useradd -r -g mail -d /var/lib/clamd.clamsmtp -s /sbin/nologin -c 'User to own clamsmtp directories and default processes' clamsmtp
exit 0

PREUN

/bin/sh
if [ $1 -eq 0 ];
then
    /sbin/service clamsmtpd stop &>/dev/null || :
    /sbin/chkconfig --del clamsmtpd

    /sbin/service clamsmtp-clamd stop &>/dev/null || :
    /sbin/chkconfig --del clamsmtp-clamd
fi

POSTIN

/bin/sh
/sbin/chkconfig --add clamsmtpd
/sbin/chkconfig --add clamsmtp-clamd

POSTUN

/bin/sh
if [ $1 -ge 1 ]; then
    /sbin/service clamsmtpd condrestart &>/dev/null || :
fi