summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsolsTiCe d'Hiver2021-03-04 14:57:57 +0100
committersolsTiCe d'Hiver2021-03-04 14:59:15 +0100
commita0d20fc53be62ffad5909467c3e874e18a8945a4 (patch)
tree799c020018aa906e5141f568dfcd3084382af860
parent116c077cdb491dffdbc5ed9fc3e04d021fca6d11 (diff)
downloadaur-a0d20fc53be62ffad5909467c3e874e18a8945a4.tar.gz
Add comment in install to start the daemon
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--piavpn-bin.install11
3 files changed, 10 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f1e9ae42d132..6f1cea5ae656 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = piavpn-bin
pkgdesc = Private Internet Access client
pkgver = 2.7.0_06158
-pkgrel = 1
+pkgrel = 2
url = https://privateinternetaccess.com/
install = piavpn-bin.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 447b03773847..37820b01f4d5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@ pkgname=piavpn-bin
pkgver=2.7.0_06158
_pkgver=${pkgver/_/-}
_pkgver=${_pkgver/.0/}
-pkgrel=1
+pkgrel=2
pkgdesc="Private Internet Access client"
arch=(x86_64)
url="https://privateinternetaccess.com/"
diff --git a/piavpn-bin.install b/piavpn-bin.install
index 9d5b7c807119..8cc6c48887de 100644
--- a/piavpn-bin.install
+++ b/piavpn-bin.install
@@ -19,9 +19,14 @@ pre_install() {
addRoutingTable piavpnFwdrt
}
+post_install() {
+ echo "You need to start the daemon with `sudo systemctl start piavpn.service`"
+ echo "Also run `sudo systemctl enable piavpn.service` to make it automatically start at boot"
+}
+
pre_remove() {
- systemctl stop piavpn
- systemctl disable piavpn
+ systemctl stop piavpn.service
+ systemctl disable piavpn.service
}
post_remove() {
@@ -39,7 +44,7 @@ post_upgrade() {
fi
systemctl daemon-reload
if systemctl is-active piavpn >/dev/null; then
- systemctl restart piavpn
+ systemctl restart piavpn.service
echo ":: Don't forget to reconnect to your vpn if needed"
fi
}