Skip to content

Commit

Permalink
Merge pull request #2 from rinigus/master
Browse files Browse the repository at this point in the history
 make install errors non-fatal
  • Loading branch information
kimmoli committed Mar 21, 2018
2 parents f776e22 + c348078 commit a986f95
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rpm/triambience.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ rm -rf %{buildroot}
%preun
# in case of complete removal, stop and disable
if [ "$1" = "0" ]; then
systemctl-user stop triambience
systemctl-user disable triambience
systemctl-user stop triambience || true
systemctl-user disable triambience || true
fi

%post
systemctl-user daemon-reload
systemctl-user start triambience
systemctl-user enable triambience
systemctl-user daemon-reload || true
systemctl-user start triambience || true
systemctl-user enable triambience || true

%pre
# In case of update, stop first
if [ "$1" = "2" ]; then
systemctl-user stop triambience
systemctl-user disable triambience
systemctl-user stop triambience || true
systemctl-user disable triambience || true
fi

%files
Expand Down

0 comments on commit a986f95

Please sign in to comment.