Skip to content

Commit

Permalink
Dockerfile typos
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed Jul 13, 2017
1 parent 764feb8 commit 102a503
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dns() {
firewall() { local port=${1:-1194} docker_network=$(ip -o addr show dev eth0 |
awk '$3 == "inet" {print $4}') network
[[ -z "${1:-""}" && -r $conf ]] &&
port=$(awk '/^remote / && NF ~ /^[0-9]*$/ {print $NF}' $cert |
port=$(awk '/^remote / && NF ~ /^[0-9]*$/ {print $NF}' $conf |
grep ^ || echo 1194)

iptables -F OUTPUT
Expand Down Expand Up @@ -116,7 +116,7 @@ timezone() { local timezone="${1:-EST5EDT}"
# port) port to connect to VPN (optional)
# Return: configured .ovpn file
vpn() { local server="$1" user="$2" pass="$3" port="${4:-1194}" i \
pem=$(\ls $dir/*.pem)
pem=$(\ls $dir/*.pem 2>&-)

echo "client" >$conf
echo "dev tun" >>$conf
Expand All @@ -129,8 +129,8 @@ vpn() { local server="$1" user="$2" pass="$3" port="${4:-1194}" i \
echo "keepalive 10 30" >>$conf
echo "nobind" >>$conf
echo "persist-key" >>$conf
[[ "$CIPHER" ]] && echo "cipher $CIPHER" >>$conf
[[ "$AUTH" ]] && echo "auth $AUTH" >>$conf
[[ "${CIPHER:-""}" ]] && echo "cipher $CIPHER" >>$conf
[[ "${AUTH:-""}" ]] && echo "auth $AUTH" >>$conf
echo "tls-client" >>$conf
echo "remote-cert-tls server" >>$conf
echo "auth-user-pass $auth" >>$conf
Expand Down

0 comments on commit 102a503

Please sign in to comment.