Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates > by-pkgid > 06b62fbb2356d97d3673ece3a00bbfb4 > scriptlet

audit-2.4.4-1.mga5.i586.rpm

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

/usr/bin/systemd-tmpfiles --create audit.conf 


## This hack is because the audid.service needs to be started before sysinit.target. So let's just enable and start 
## the service manually after installation. This needs to be revisited after our /usr/share/rpm-helper/add-service audit $1 has been adjusted 

systemctl enable -q auditd.service
systemctl start -q auditd.service
# /usr/share/rpm-helper/add-service audit $1 auditd.service

POSTUN

/bin/sh
systemctl disable -q auditd.service
systemctl stop -q auditd.service