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