Skip to content

Commit

Permalink
Fix Privado update script linking default config
Browse files Browse the repository at this point in the history
We need to _force_ linking an existing file instead of a fixed one. The
latest configs don't have an `ams-005.ovpn`. We also need to use `-f` to
force linking and replace the existing file.
  • Loading branch information
aymanbagabas committed Aug 10, 2024
1 parent aac0f2a commit 26248ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openvpn/privado/updateConfigs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ for f in *.default.ovpn; do mv -- "$f" "${f%.default.ovpn}.ovpn"; done
# Update configs with correct paths
sed -i "s/auth-user-pass/auth-user-pass \/config\/openvpn-credentials.txt/" *.ovpn

# Create symlink for default.ovpn
ln -s ams-005.ovpn default.ovpn
# Create symlink for default.ovpn using the first ams-XXX.ovpn file
files=(ams-*.ovpn)
ln -sf "${files[1]}" default.ovpn

0 comments on commit 26248ff

Please sign in to comment.