mirror of
https://github.com/haugene/docker-transmission-openvpn.git
synced 2025-08-16 19:27:07 +02:00
20 lines
522 B
Bash
Executable File
20 lines
522 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# If the script is called from elsewhere
|
|
cd "${0%/*}"
|
|
|
|
# Delete everything (not this script though)
|
|
find . ! -name '*.sh' -delete
|
|
|
|
# Get updated configuration zip from TorGuard
|
|
curl -L https://privado.io/apps/ovpn_configs.zip -o privado_configs.zip \
|
|
&& unzip -j privado_configs.zip && rm -f privado_configs.zip
|
|
|
|
# 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-001.ovpn default.ovpn
|