fix: remove installed VPN script on uninstall

This commit is contained in:
Kevin Yue committed 2026-07-30 22:51:40 +08:00
1 parent 40b35804e7
commit 7ae09aad8c
11 files changed
+74 -5

No files matched your search

+12 -1
View File
@@ -2,7 +2,18 @@
set -e
case "$1" in
purge|remove|upgrade)
purge|remove)
rm -f \
/var/lib/gpclient/scripts/vpnc-script \
/var/lib/gpclient/scripts/vpnc-script.metadata ||
echo "Warning: failed to remove the installed VPN script" >&2
rmdir /var/lib/gpclient/scripts 2>/dev/null || true
# Remove the gpgui binary downloaded at runtime
rm -f /usr/bin/gpgui
;;
upgrade)
# Remove the gpgui binary downloaded at runtime
rm -f /usr/bin/gpgui
;;