From 936a8b8ff0d5140ba559d916e905ab219ed4cd32 Mon Sep 17 00:00:00 2001 From: Nyr Date: Thu, 25 Sep 2014 04:00:32 +0200 Subject: [PATCH] Removed useless cat --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index a328a63..38529f6 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -176,7 +176,7 @@ else sed -i 's|;push "redirect-gateway def1 bypass-dhcp"|push "redirect-gateway def1 bypass-dhcp"|' server.conf sed -i "s|port 1194|port $PORT|" server.conf # Obtain the resolvers from resolv.conf and use them for OpenVPN - cat /etc/resolv.conf | grep -v '#' | grep 'nameserver' | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | while read line; do + grep -v '#' /etc/resolv.conf | grep 'nameserver' | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | while read line; do sed -i "/;push \"dhcp-option DNS 208.67.220.220\"/a\push \"dhcp-option DNS $line\"" server.conf done # Listen at port 53 too if user wants that