Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > 1e4fedfe8c3291c16336cda3a983c1fc > scriptlet

pure-ftpd-1.0.32-1.fc14.i686.rpm

PREUN

/bin/sh
if [ "$1" -lt "1" ]; then
    /sbin/service pure-ftpd stop > /dev/null 2>&1 || :
    /sbin/chkconfig --del pure-ftpd
fi

POSTIN

/bin/sh
if [ "$1" -le "1" ]; then # fist install
    /sbin/chkconfig --add pure-ftpd
fi
# TLS Certificate
if [ ! -f /etc/pki/pure-ftpd/pure-ftpd.pem ]; then
  /etc/pki/tls/certs/make-dummy-cert \
    /etc/pki/pure-ftpd/pure-ftpd.pem
fi

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then 
    /sbin/service pure-ftpd condrestart > /dev/null 2>&1 
fi