Dev 296 was built from a git export of the commit, where install.sh, uninstall.sh, AppRun, bin/* and the deb scripts were stored as 100644 (local builds had the bit set by hand, so every test on the build machine passed). The AppImage carried a non-executable install.sh: its first start died on every desktop with sudo: install.sh: command not found (pkexec the same), nothing was installed and the window never opened. Now the modes are 100755 in git and AppRun makes its temporary copy of install.sh/uninstall.sh executable itself. Two tests (the git index modes; the chmod in AppRun), both fail on the old state. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
11 lines
460 B
Shell
Executable file
11 lines
460 B
Shell
Executable file
#!/bin/sh
|
|
set -e
|
|
if [ "$1" = remove ] || [ "$1" = upgrade ] || [ "$1" = deconfigure ]; then
|
|
if [ -d /run/systemd/system ]; then
|
|
systemctl stop zapretgui-helper.service || true
|
|
[ "$1" = remove ] && systemctl disable zapretgui-helper.service || true
|
|
fi
|
|
# the helper removes its table when it stops; this is the second net, so no rule outlives the program
|
|
command -v nft >/dev/null && nft delete table inet zapretgui 2>/dev/null || true
|
|
fi
|
|
exit 0
|