Commit c006a85d authored by Tomas Krizek's avatar Tomas Krizek

distro/rpm: handle systemd files update in Fedora

parent 06d01bf0
Pipeline #49942 passed with stages
in 10 minutes and 56 seconds
......@@ -203,10 +203,13 @@ getent group knot-resolver >/dev/null || groupadd -r knot-resolver
getent passwd knot-resolver >/dev/null || useradd -r -g knot-resolver -d %{_sysconfdir}/knot-resolver -s /sbin/nologin -c "Knot Resolver" knot-resolver
%post
%systemd_post 'kresd@*.service'
%if 0%{?fedora}
# in case socket/service files are updated
systemctl daemon-reload
%systemd_post 'system-kresd.slice'
# https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
%else
%systemd_post 'kresd@*.service'
/sbin/ldconfig
%endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment