mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
fix: separate packaged and runtime GUI binaries
This commit is contained in:
15 files changed
+251
-59
No files matched your search
@@ -4,18 +4,12 @@ set -e
|
||||
case "$1" in
|
||||
purge|remove)
|
||||
rm -f \
|
||||
/var/lib/gpclient/gpgui \
|
||||
/var/lib/gpclient/scripts/vpnc-script \
|
||||
/var/lib/gpclient/scripts/vpnc-script.metadata ||
|
||||
echo "Warning: failed to remove the installed VPN script" >&2
|
||||
echo "Warning: failed to remove gpclient runtime files" >&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
|
||||
rmdir /var/lib/gpclient 2>/dev/null || true
|
||||
;;
|
||||
|
||||
*)
|
||||
|
||||
Reference in new issue
Block a user