Skip to content

Commit

Permalink
packaging: install drbd-reactor autoreload if present
Browse files Browse the repository at this point in the history
  • Loading branch information
chrboe committed Oct 13, 2023
1 parent 434d2d1 commit 736cd2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions linstor-gateway.spec
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ install -D -m 644 %{name}.xml %{buildroot}%{_firewalldir}/services/%{name}.xml
%post
%systemd_post %{name}.service
%firewalld_reload
# if drbd-reactor is already installed, install the auto-reload service
find %{_datadir}/doc/drbd-reactor* \
\( -name 'drbd-reactor-reload.path' -o -name 'drbd-reactor-reload.service' \) \
-exec cp {} %{_unitdir}/ \; || true

%preun
%systemd_preun %{name}.service
Expand Down

0 comments on commit 736cd2a

Please sign in to comment.