Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[packaging] Make sure the %preun and %post scripts do not fail.
Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
  • Loading branch information
Marko Saukko authored and philippedeswert committed Feb 10, 2014
1 parent 8190b6e commit 6132369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpm/usb-moded.spec
Expand Up @@ -271,10 +271,10 @@ ln -s ../%{name}.service $RPM_BUILD_ROOT/lib/systemd/system/basic.target.wants/%
rm %{buildroot}/etc/usb-moded/dyn-modes/sync_mode.ini

%preun
systemctl daemon-reload
systemctl daemon-reload || :

%post
systemctl daemon-reload
systemctl daemon-reload || :

%files
%defattr(-,root,root,-)
Expand Down

0 comments on commit 6132369

Please sign in to comment.