From 3f953699eb3fc0657088e7cf73951ba315d12355 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 14 May 2017 16:51:29 +0200 Subject: [PATCH] [fix] Unexpected comment line ending up in /etc/resolv.dnsmasq.conf (#312) --- data/hooks/conf_regen/43-dnsmasq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/hooks/conf_regen/43-dnsmasq b/data/hooks/conf_regen/43-dnsmasq index e298f7eaa..2c8ce797b 100755 --- a/data/hooks/conf_regen/43-dnsmasq +++ b/data/hooks/conf_regen/43-dnsmasq @@ -21,7 +21,7 @@ do_pre_regen() { cp plain/dnsmasq.conf ${pending_dir}/etc/dnsmasq.conf # add resolver file - cat plain/resolv.dnsmasq.conf | grep nameserver | shuf > ${pending_dir}/etc/resolv.dnsmasq.conf + cat plain/resolv.dnsmasq.conf | grep "^nameserver" | shuf > ${pending_dir}/etc/resolv.dnsmasq.conf # retrieve variables ipv4=$(curl -s -4 https://ip.yunohost.org 2>/dev/null || true)