diff --git a/suricata.spec b/suricata.spec index f125c1d..0d5cb33 100644 --- a/suricata.spec +++ b/suricata.spec @@ -106,13 +106,15 @@ make check %pre getent passwd suricata >/dev/null || useradd -r -M -s /sbin/nologin suricata -%post -p /sbin/ldconfig +%post +%{?ldconfig} %systemd_post suricata.service %preun %systemd_preun suricata.service -%postun -p /sbin/ldconfig +%postun +%{?ldconfig} %systemd_postun_with_restart suricata.service %files