Skip to content

Commit

Permalink
[packaging] Fix rpm preun/post/postun scripts.
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
  • Loading branch information
Marko Saukko committed Feb 6, 2014
1 parent 8ea0f09 commit 123f0e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpm/dsme.spec
Expand Up @@ -72,15 +72,15 @@ install -d %{buildroot}/var/lib/dsme

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

%post
systemctl daemon-reload
systemctl reload-or-try-restart %{name}.service
systemctl daemon-reload || :
systemctl reload-or-try-restart %{name}.service || :

%postun
systemctl daemon-reload
systemctl daemon-reload || :

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

0 comments on commit 123f0e6

Please sign in to comment.