diff options
author | solsTiCe d'Hiver | 2020-09-10 11:28:36 +0200 |
---|---|---|
committer | solsTiCe d'Hiver | 2020-09-10 11:28:36 +0200 |
commit | b27113b9aa305343ce3b4617ff647b21024dfd6f (patch) | |
tree | c97e487c7a404deac144fc07a7c795cd44339dd9 | |
parent | 7339e67a11abde204fd0c031044f27a7253be85e (diff) | |
download | aur-b27113b9aa305343ce3b4617ff647b21024dfd6f.tar.gz |
Also add new routing table on upgrade
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | piavpn-bin.install | 4 |
3 files changed, 6 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = piavpn-bin pkgdesc = Private Internet Access client pkgver = 2.4_05574 -pkgrel = 2 +pkgrel = 3 url = https://privateinternetaccess.com/ install = piavpn-bin.install arch = x86_64 @@ -2,7 +2,7 @@ pkgname=piavpn-bin pkgver=2.4_05574 _pkgver=${pkgver/_/-} -pkgrel=2 +pkgrel=3 pkgdesc="Private Internet Access client" arch=(x86_64) url="https://privateinternetaccess.com/" diff --git a/piavpn-bin.install b/piavpn-bin.install index c9693320237c..9d5b7c807119 100644 --- a/piavpn-bin.install +++ b/piavpn-bin.install @@ -28,11 +28,15 @@ post_remove() { sed -i '/.*piavpnrt$/d' /etc/iproute2/rt_tables sed -i '/.*piavpnOnlyrt$/d' /etc/iproute2/rt_tables sed -i '/.*piavpnWgrt$/d' /etc/iproute2/rt_tables + sed -i '/.*piavpnFwdrt$/d' /etc/iproute2/rt_tables groupdel piavpn groupdel piahnsd } post_upgrade() { + if ! grep -q piavpnFwdrt /etc/iproute2/rt_tables; then + addRoutingTable piavpnFwdrt + fi systemctl daemon-reload if systemctl is-active piavpn >/dev/null; then systemctl restart piavpn |