Skip to content

Commit

Permalink
Merge pull request #12 from nemomobile/packaging
Browse files Browse the repository at this point in the history
[packaging] Make sure the %preun and %post scripts do not fail.
  • Loading branch information
philippedeswert committed Feb 6, 2014
2 parents 8190b6e + 1f3e887 commit 125824d
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 125824d

Please sign in to comment.