Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[packaging] Fix rpm preun/post/postun scripts.
Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
  • Loading branch information
Marko Saukko committed Feb 6, 2014
1 parent dbd6756 commit 5d75656
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpm/sensorfw-qt5.spec
Expand Up @@ -100,17 +100,17 @@ ln -s ../sensord.service %{buildroot}/%{_lib}/systemd/system/basic.target.wants/

%preun
if [ "$1" -eq 0 ]; then
systemctl stop sensord.service
systemctl stop sensord.service || :
fi

%post
/sbin/ldconfig
systemctl daemon-reload
systemctl reload-or-try-restart sensord.service
systemctl daemon-reload || :
systemctl reload-or-try-restart sensord.service || :

%postun
/sbin/ldconfig
systemctl daemon-reload
systemctl daemon-reload || :

%post tests -p /sbin/ldconfig

Expand Down

0 comments on commit 5d75656

Please sign in to comment.