Skip to content

Commit

Permalink
fix: remove settings.dat and install.dat upon installing
Browse files Browse the repository at this point in the history
  • Loading branch information
sdip15fa committed May 19, 2023
1 parent 84d3384 commit 8400a80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nordvpn-git.install
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ post_install() {
echo " sudo gpasswd -a USERNAME nordvpn"
echo ':: You then have to restart for the group to be created:'
echo " reboot"
# remove some .dat files that might exist from nordvpn-bin
# https://github.com/NordSecurity/nordvpn-linux/issues/3#issuecomment-1551021304
if [ -f "/var/lib/nordvpn/data/install.dat" ]; then
echo "Removing /var/lib/nordvpn/data/install.dat";
rm /var/lib/nordvpn/data/install.dat;
fi;
if [ -f "/var/lib/nordvpn/data/settings.dat" ]; then
echo "Removing /var/lib/nordvpn/data/settings.dat";
rm /var/lib/nordvpn/data/settings.dat;
fi;
}

post_upgrade() {
Expand Down

0 comments on commit 8400a80

Please sign in to comment.