Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > b4f137954c98b44523122104ee2d57c5 > scriptlet

audit-2.4.1-1.fc20.x86_64.rpm

PREUN

/bin/sh

if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        systemctl --no-reload disable auditd.service > /dev/null 2>&1 || : 
        systemctl stop auditd.service > /dev/null 2>&1 || : 
fi

POSTIN

/bin/sh
# Copy default rules into place on new installation
if [ ! -e /etc/audit/audit.rules ] ; then
	cp /etc/audit/rules.d/audit.rules /etc/audit/audit.rules
fi

if [ $1 -eq 1 ] ; then 
        # Initial installation 
        systemctl preset auditd.service >/dev/null 2>&1 || : 
fi

POSTUN

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