Coalesce systemd scriptlets
It is more efficient to do callout just once.
This commit is contained in:
parent
4ecb4ea3a6
commit
4a1b44b35c
12
keylime.spec
12
keylime.spec
@ -69,19 +69,13 @@ install -pm 644 ./services/%{srcname}_agent.service \
|
||||
cp -r ./tpm_cert_store %{buildroot}%{_sharedstatedir}/keylime/
|
||||
|
||||
%post
|
||||
%systemd_post %{srcname}_agent.service
|
||||
%systemd_post %{srcname}_verifier.service
|
||||
%systemd_post %{srcname}_registrar.service
|
||||
%systemd_post %{srcname}_agent.service %{srcname}_verifier.service %{srcname}_registrar.service
|
||||
|
||||
%preun
|
||||
%systemd_preun %{srcname}_agent.service
|
||||
%systemd_preun %{srcname}_verifier.service
|
||||
%systemd_preun %{srcname}_registrar.service
|
||||
%systemd_preun %{srcname}_agent.service %{srcname}_verifier.service %{srcname}_registrar.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart %{srcname}_agent.service
|
||||
%systemd_postun_with_restart %{srcname}_verifier.service
|
||||
%systemd_postun_with_restart %{srcname}_registrar.service
|
||||
%systemd_postun_with_restart %{srcname}_agent.service %{srcname}_verifier.service %{srcname}_registrar.service
|
||||
|
||||
%files
|
||||
%license LICENSE keylime/static/icons/ICON-LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user