summarylogtreecommitdiffstats
path: root/openvpn-nordvpn.install
diff options
context:
space:
mode:
authorNicolas Stinus2017-06-10 23:39:27 +0800
committerNicolas Stinus2017-06-15 00:27:22 +0800
commit05ef660c30980cbe5ac6e269957ca61c76dded41 (patch)
tree3f54bf29e3dbd1feae1440b769d7f2a9c16dc33b /openvpn-nordvpn.install
parentcb2f45b0d97a838e64b9f8c96ac5aa4879ad68b1 (diff)
downloadaur-05ef660c30980cbe5ac6e269957ca61c76dded41.tar.gz
Pull master and adapt for new nordvpn infos command (requires python-pandas)
Diffstat (limited to 'openvpn-nordvpn.install')
-rw-r--r--openvpn-nordvpn.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/openvpn-nordvpn.install b/openvpn-nordvpn.install
index d09f477b4603..cf54a7ed3f7c 100644
--- a/openvpn-nordvpn.install
+++ b/openvpn-nordvpn.install
@@ -2,6 +2,14 @@ pre_remove() {
nordvpn stop
}
+post_upgrade() {
+ if [ $(find /etc/openvpn/client -name 'nordvpn_*p.conf' | wc -l) -eq 0 ];
+ then
+ echo "Config files outdated."
+ nordvpn update -f
+ fi
+}
+
post_remove() {
rm -rf /etc/openvpn/client/nordvpn
find /etc/openvpn/client -name 'nordvpn_*.conf' | xargs -r rm