Skip to content

Commit eed5d53

Browse files
committed
Make package scriptlets more universal
1 parent 0013516 commit eed5d53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/install-scripts/post-install.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ echo "Installing AppImageLauncher as interpreter for AppImages"
66

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

11-
(set -x; systemctl restart systemd-binfmt)
11+
systemctl try-restart systemd-binfmt.service || echo "ERROR: failed to execute 'systemctl try-restart systemd-binfmt.service', apply binfmt integration manually" >&2

resources/install-scripts/post-uninstall.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -eo pipefail
44

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

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

0 commit comments

Comments
 (0)