Update to 3.1.0-4

Add pre_remove hook to fix attributes for data files.
This is dirty, but it is how nordvpn does upstream too.

Adjust PKGBUILD as there is now only 1 systemd service again.

Do not ship with the SysV files as arch is a systemd distro.
This commit is contained in:
Martoko
2019-06-04 21:36:36 +02:00
parent cbe7fa2d48
commit 43d6b839c9
3 changed files with 22 additions and 27 deletions

View File

@@ -1,13 +1,8 @@
post_install() {
echo ':: In order to enable nordvpn you have to start two services:'
echo ' sudo systemctl enable --now nordvpnsd'
echo ' systemctl --user enable --now nordvpnud'
echo ':: In order to enable nordvpn you have to start the following service:'
echo ' sudo systemctl enable --now nordvpnd'
}
post_upgrade() {
if [ $(vercmp $2 3.0.0_4-1) -lt 0 ]; then
echo ':: In order to enable nordvpn you have to start two services:'
echo ' sudo systemctl enable --now nordvpnsd'
echo ' systemctl --user enable --now nordvpnud'
fi
pre_remove() {
chattr -i /var/lib/nordvpn/data/*
}