Add Proxy.sh config files

This commit is contained in:
Jo Boiteau
2017-12-24 08:42:24 +10:00
committed by Joseph Boiteau
parent 3a10ad860c
commit 501870e3c8
34 changed files with 1779 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
# If the script is called from elsewhere
cd "${0%/*}"
# Ensure linux line endings
dos2unix *
# Update auth config line with correct path
gsed -i "s/^auth-user-pass.*/auth-user-pass \/config\/openvpn-credentials.txt/" *.ovpn
# Remove comments and empty lines
gsed -i -e "/^#.*/d" -e "/^$/d" *.ovpn
# Create symlink for default.ovpn
ln -s "U.S. Texas Hub - TCP.ovpn" default.ovpn