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