mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
26 lines
540 B
Bash
Executable File
26 lines
540 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
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
|
|
;;
|
|
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
exit 0
|