Skip to content

Commit

Permalink
Add %postun executing ssu rr sailfishos-chum (#9)
Browse files Browse the repository at this point in the history
This *should* work.  Hopefully.
  • Loading branch information
Olf0 authored Jan 29, 2023
1 parent ad71f7d commit 9022869
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion rpm/sailfishos-chum-gui-installer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name: sailfishos-chum-gui-installer
# natural number greater or equal to 1, which may be prefixed with one of
# {alpha,beta,rc,release} (e.g., "beta3"). For details and reasons, see
# https://github.com/storeman-developers/harbour-storeman-installer/wiki/Git-tag-format
Version: 0.2.1
Version: 0.3.0
Release: 1
Group: Applications/System
URL: https://github.com/sailfishos-chum/%{name}
Expand Down Expand Up @@ -138,6 +138,15 @@ fi
# (`%%pre*`, `%%post*`, `%%trigger*` and `%%file*`).
exit 0

%postun
if [ "$1" = 0 ] # Removal
then
ssu rr sailfishos-chum
rm -f /var/cache/ssu/features.ini
ssu ur
fi
exit 0

%posttrans
# At the very end of every install or upgrade
# The sailfishos-chum-gui-installer script must be started fully detached
Expand Down

0 comments on commit 9022869

Please sign in to comment.