From a65523eb1c289d5434212b987a530dc152924663 Mon Sep 17 00:00:00 2001 From: jtbr Date: Sun, 10 Apr 2016 19:45:33 +0200 Subject: [PATCH] this time actually fix the quoting issue for ip option 3 --- openvpn-install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 661ebf5..1e3a87d 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -323,10 +323,8 @@ tls-version-min 1.2" > /etc/openvpn/server.conf 3) #OpenNIC #Getting the nearest OpenNIC servers using the geoip API 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