Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 20baee9a47e86817b91cd96e2a22c8bf > scriptlet

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

PREUN

/bin/sh
if [ "$1" -lt "1" ]; then # Final removal
    semodule -r pureftpd 2>/dev/null || :
    fixfiles -R pure-ftpd restore || :
    /sbin/service pure-ftpd condrestart > /dev/null 2>&1 || :
fi

POSTIN

/bin/sh
if [ "$1" -le "1" ]; then # Fist install
    semodule -i /usr/share/selinux/packages/pure-ftpd/pureftpd.pp 2>/dev/null || :
    fixfiles -R pure-ftpd restore || :
    /sbin/service pure-ftpd condrestart > /dev/null 2>&1  || :
fi

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then # Upgrade
    # Replaces the module if it is already loaded
    semodule -i /usr/share/selinux/packages/pure-ftpd/pureftpd.pp 2>/dev/null || :
    # no need to restart the daemon
fi