Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 7bb1d71fdccc37903aa84d471ad34b8e > scriptlet

audit-2.3.2-2.4.mga4.x86_64.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 /usr/share/rpm-helper/add-service audit $1 auditd.service doesn't work . 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
## /usr/share/rpm-helper/del-service audit $1 auditd