diff options
author | solsTiCe d'Hiver | 2021-03-04 14:57:57 +0100 |
---|---|---|
committer | solsTiCe d'Hiver | 2021-03-04 14:59:15 +0100 |
commit | a0d20fc53be62ffad5909467c3e874e18a8945a4 (patch) | |
tree | 799c020018aa906e5141f568dfcd3084382af860 /piavpn-bin.install | |
parent | 116c077cdb491dffdbc5ed9fc3e04d021fca6d11 (diff) | |
download | aur-a0d20fc53be62ffad5909467c3e874e18a8945a4.tar.gz |
Add comment in install to start the daemon
Diffstat (limited to 'piavpn-bin.install')
-rw-r--r-- | piavpn-bin.install | 11 |
1 files changed, 8 insertions, 3 deletions
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 } |