From 01003c88f8059f18f33361d8c190484c4c7b08e9 Mon Sep 17 00:00:00 2001 From: jtbr Date: Sun, 10 Apr 2016 18:26:49 +0200 Subject: [PATCH] fix dns option 3 with single quotes --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 14f3698..364f33c 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -315,8 +315,8 @@ tls-version-min 1.2" > /etc/openvpn/server.conf read ns1 ns2 <<< $(curl -s https://api.opennicproject.org/geoip/ | head -2 | awk '{print $1}') echo -e "nameserver $ns1 nameserver $ns2" >> /etc/resolv.conf #Set the DNS servers - echo "push "dhcp-option DNS $ns1"" >> /etc/openvpn/server.conf - echo "push "dhcp-option DNS $ns2"" >> /etc/openvpn/server.conf + echo 'push "dhcp-option DNS $ns1"' >> /etc/openvpn/server.conf + echo 'push "dhcp-option DNS $ns2"' >> /etc/openvpn/server.conf ;; 4) #OpenDNS echo 'push "dhcp-option DNS 208.67.222.222"' >> /etc/openvpn/server.conf