Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Torguard config file location #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ MAINTAINER Justin Dray <[email protected]>

RUN apk add --no-cache openvpn openssl

RUN wget https://torguard.net/downloads/OpenVPN-UDP.zip && \
unzip OpenVPN-UDP.zip
RUN wget https://torguard.net/downloads/OpenVPN-UDP-Linux.zip && \
unzip OpenVPN-UDP-Linux.zip

WORKDIR /OpenVPN-UDP

Expand Down
2 changes: 2 additions & 0 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -e -u -o pipefail


if [ -n "$REGION" ]; then
sed -i "s|up /etc/openvpn/update-resolv-conf|up /etc/openvpn/up.sh|g" TorGuard.${REGION}.ovpn
sed -i "s|down /etc/openvpn/update-resolv-conf|up /etc/openvpn/down.sh|g" TorGuard.${REGION}.ovpn
set -- "$@" '--config' "TorGuard.${REGION}.ovpn"
fi

Expand Down