created script that updated pia configs. also created a parent script that calls all provider specific scripts

This commit is contained in:
Kristian Haugene
2016-09-02 22:54:30 +02:00
parent 31b66f3d35
commit a52fe2edbd
3 changed files with 38 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
set -e
# If the script is called from elsewhere
cd "${0%/*}"
@@ -10,7 +12,7 @@ find . ! -name '*.sh' -delete
curl -L https://torguard.net/downloads/OpenVPN-UDP.zip -o OpenVPN-UDP.zip \
&& unzip -j OpenVPN-UDP.zip && rm OpenVPN-UDP.zip
# Remove TorGuard prefix of config files and fix line endings
# Remove TorGuard prefix of config files and ensure linux line endings
rename 's/^TorGuard\.//' *.ovpn
dos2unix *