mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-18 22:16:18 -05:00
fix(packaging): remove downloaded NSH binary on uninstall
This commit is contained in:
7 files changed
+7
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
rm -f \
|
||||
/var/lib/gpclient/gpgui \
|
||||
/var/lib/gpclient/gpgui-nsh \
|
||||
/var/lib/gpclient/scripts/vpnc-script \
|
||||
/var/lib/gpclient/scripts/vpnc-script.metadata ||
|
||||
echo "Warning: failed to remove gpclient runtime files" >&2
|
||||
|
||||
@@ -11,6 +11,7 @@ post_upgrade() {
|
||||
post_remove() {
|
||||
rm -f \
|
||||
/var/lib/gpclient/gpgui \
|
||||
/var/lib/gpclient/gpgui-nsh \
|
||||
/var/lib/gpclient/scripts/vpnc-script \
|
||||
/var/lib/gpclient/scripts/vpnc-script.metadata ||
|
||||
echo "Warning: failed to remove gpclient runtime files" >&2
|
||||
|
||||
@@ -64,6 +64,7 @@ uninstall:
|
||||
|
||||
rm -f $(DESTDIR)/var/lib/gpclient/scripts/vpnc-script \
|
||||
$(DESTDIR)/var/lib/gpclient/gpgui \
|
||||
$(DESTDIR)/var/lib/gpclient/gpgui-nsh \
|
||||
$(DESTDIR)/var/lib/gpclient/scripts/vpnc-script.metadata || \
|
||||
echo "Warning: failed to remove gpclient runtime files" >&2
|
||||
rmdir $(DESTDIR)/var/lib/gpclient/scripts 2>/dev/null || true
|
||||
|
||||
@@ -5,6 +5,7 @@ case "$1" in
|
||||
purge|remove)
|
||||
rm -f \
|
||||
/var/lib/gpclient/gpgui \
|
||||
/var/lib/gpclient/gpgui-nsh \
|
||||
/var/lib/gpclient/scripts/vpnc-script \
|
||||
/var/lib/gpclient/scripts/vpnc-script.metadata ||
|
||||
echo "Warning: failed to remove gpclient runtime files" >&2
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
post_remove() {
|
||||
rm -f \
|
||||
/var/lib/gpclient/gpgui \
|
||||
/var/lib/gpclient/gpgui-nsh \
|
||||
/var/lib/gpclient/scripts/vpnc-script \
|
||||
/var/lib/gpclient/scripts/vpnc-script.metadata ||
|
||||
echo "Warning: failed to remove gpclient runtime files" >&2
|
||||
|
||||
@@ -53,6 +53,7 @@ A GUI for GlobalProtect VPN, based on OpenConnect, supports the SSO authenticati
|
||||
if [ "$1" -eq 0 ]; then
|
||||
rm -f \
|
||||
/var/lib/gpclient/gpgui \
|
||||
/var/lib/gpclient/gpgui-nsh \
|
||||
/var/lib/gpclient/scripts/vpnc-script \
|
||||
/var/lib/gpclient/scripts/vpnc-script.metadata ||
|
||||
echo "Warning: failed to remove gpclient runtime files" >&2
|
||||
|
||||
Reference in new issue
Block a user