mirror of
https://github.com/haugene/docker-transmission-openvpn.git
synced 2025-09-13 17:51:04 +02:00
made script executable
chmod u+x updateConfigs.sh
This commit is contained in:
parent
c97b7d4a38
commit
baccca03e2
9
openvpn/nordvpn/updateConfigs.sh
Normal file → Executable file
9
openvpn/nordvpn/updateConfigs.sh
Normal file → Executable file
@ -15,8 +15,13 @@ curl -kL https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip -o open
|
||||
# Ensure linux line endings
|
||||
#dos2unix *
|
||||
|
||||
# Update configs with correct paths
|
||||
sed -i "s/auth-user-pass/auth-user-pass \/config\/openvpn-credentials.txt/" *.ovpn
|
||||
# Update configs with correct options
|
||||
sed -i 's=auth-user-pass=auth-user-pass /config/openvpn-credentials.txt=g' *.ovpn
|
||||
sed -i 's/ping 15/inactive 3600\
|
||||
ping 10/g' *.ovpn
|
||||
|
||||
sed -i 's/ping-restart 0/ping-exit 60/g' *.ovpn
|
||||
sed -i 's/ping-timer-rem//g' *.ovpn
|
||||
|
||||
# Create symlink for default.ovpn
|
||||
ln -s nl8.nordvpn.com.tcp.ovpn default.ovpn
|
||||
|
Loading…
x
Reference in New Issue
Block a user