Commit 9eb91899 authored by Hussain Khalil's avatar Hussain Khalil

Include resolv script in container

parent f66f0e2c
......@@ -38,7 +38,7 @@ if [ "$container" = "pia" ]; then
if [ ! -f /tmp/port_assignment ]; then touch /tmp/port_assignment; fi
chmod 777 /tmp/port_assignment
> /tmp/port_assignment
docker run --cap-add=NET_ADMIN --device=/dev/net/tun --name=pia --dns 209.222.18.222 --dns 209.222.18.218 -v '/home/hussain/build/.auth:/pia/auth.conf' -v '/tmp/port_assignment:/port_assignment' -e 'REGION=CA Toronto' docker-openvpn --script-security 2 --up /etc/openvpn/update-resolv-conf --down /etc/openvpn/update-resolv-conf --route-up /bin/route-up.sh --auth-user-pass auth.conf
docker run --cap-add=NET_ADMIN --device=/dev/net/tun --name=pia --dns 209.222.18.222 --dns 209.222.18.218 -v '/etc/openvpn:/etc/openvpn' -v '/home/hussain/build/.auth:/pia/auth.conf' -v '/tmp/port_assignment:/port_assignment' -e 'REGION=CA Toronto' docker-openvpn --script-security 2 --up /etc/openvpn/update-resolv-conf --down /etc/openvpn/update-resolv-conf --route-up /bin/route-up.sh --auth-user-pass auth.conf
exit 0
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment