mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
fix: remove installed VPN script on uninstall
This commit is contained in:
11 files changed
+74
-5
No files matched your search
@@ -47,6 +47,7 @@ makedepends="
|
||||
"
|
||||
source="$pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
install="$pkgname.post-deinstall"
|
||||
options="!check"
|
||||
|
||||
build() {
|
||||
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
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
|
||||
Reference in new issue
Block a user