Skip to content

Commit

Permalink
Make package scriptlets more universal
Browse files Browse the repository at this point in the history
  • Loading branch information
iavael committed Jan 22, 2024
1 parent 0013516 commit eed5d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/install-scripts/post-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ echo "Installing AppImageLauncher as interpreter for AppImages"

# as there's no _real_ package that we could use as a dependency to take care of the kernel module,
# we need to make sure that the kernel module is loaded manually
modprobe -v binfmt_misc
modprobe -v binfmt_misc || :

(set -x; systemctl restart systemd-binfmt)
systemctl try-restart systemd-binfmt.service || echo "ERROR: failed to execute 'systemctl try-restart systemd-binfmt.service', apply binfmt integration manually" >&2
2 changes: 1 addition & 1 deletion resources/install-scripts/post-uninstall.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eo pipefail

echo "Removing AppImageLauncher as interpreter for AppImages"
(set -x; systemctl restart systemd-binfmt)
systemctl try-restart systemd-binfmt.service || echo "ERROR: failed to execute 'systemctl try-restart systemd-binfmt.service', apply/remove binfmt integration manually" >&2

update_notifier="/usr/share/update-notifier/notify-reboot-required"
if [ -x "$update_notifier" ]; then
Expand Down

0 comments on commit eed5d53

Please sign in to comment.