Update to 3.19.0

This commit is contained in:
Mxzcabel
2024-10-02 15:11:25 -03:00
parent e6eca628c2
commit 37a3aad78a
3 changed files with 39 additions and 15 deletions

View File

@@ -5,6 +5,12 @@ post_install() {
echo " sudo gpasswd -a USERNAME nordvpn"
echo ':: You then have to restart for the group to be created:'
echo " reboot"
for lib in /usr/lib/nordvpn/*.so ; do
if [ -f "$lib" ] ; then
ln -s $lib /usr/lib/
fi
done
}
pre_install() {
@@ -17,6 +23,19 @@ pre_upgrade() {
chattr -i /var/lib/nordvpn/data/*
}
post_upgrade() {
for lib in /usr/lib/nordvpn/*.so ; do
if [ -f "$lib" ] ; then
ln -sf $lib /usr/lib/
fi
done
}
pre_remove() {
chattr -i /var/lib/nordvpn/data/*
for lib in /usr/lib/nordvpn/*.so ; do
if [ -f "$lib" ] ; then
unlink /usr/lib/$(echo $lib | cut -d '/' -f 5)
fi
done
}