Skip to content

Commit

Permalink
suse: do not call %service rules on a template file
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Morey-Chaisemartin <[email protected]>
  • Loading branch information
nmorey committed Jun 7, 2018
1 parent 2721fdb commit 7bdca36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions suse/rdma-core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -441,20 +441,18 @@ rm -rf %{buildroot}/%{_sbindir}/srp_daemon.sh
# srp daemon
#
%pre -n srp_daemon
%service_add_pre srp_daemon.service [email protected]
%service_add_pre srp_daemon.service

%post -n srp_daemon
%service_add_post srp_daemon.service [email protected]
%service_add_post srp_daemon.service
# we ship udev rules, so trigger an update.
/sbin/udevadm trigger --subsystem-match=infiniband_mad --action=change

%preun -n srp_daemon
%service_del_preun srp_daemon.service
%service_del_postun -n [email protected]

%postun -n srp_daemon
%service_del_postun srp_daemon.service
%service_del_postun -n [email protected]

#
# iwpmd
Expand Down

0 comments on commit 7bdca36

Please sign in to comment.