From 93e2b5875e854ad3cf05d2ee3370746fd49da4a6 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Tue, 21 Nov 2017 18:41:40 +0100 Subject: [PATCH] Enhance regenconf. fix #2 --- conf/dnsmasq_regenconf_hook | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/dnsmasq_regenconf_hook b/conf/dnsmasq_regenconf_hook index 1a2cf59..0212f09 100755 --- a/conf/dnsmasq_regenconf_hook +++ b/conf/dnsmasq_regenconf_hook @@ -14,6 +14,11 @@ do_pre_regen() { cp -a "/etc/dnsmasq.d/01-pihole.conf" "$temp_dir" test -e "/etc/dnsmasq.d/02-pihole-dhcp.conf" && cp -a "/etc/dnsmasq.d/02-pihole-dhcp.conf" "$temp_dir" test -e "/etc/dnsmasq.d/03-pihole-wildcard.conf" && cp -a "/etc/dnsmasq.d/03-pihole-wildcard.conf" "$temp_dir" + + # Décommente le cache-size de la config par défaut + sed --in-place "s/^#pihole# cache-size=/cache-size=/g" /etc/dnsmasq.conf + # Et commente celui de pi-hole + sed --in-place "s/^cache-size=/#cache-size=/g" /etc/dnsmasq.d/01-pihole.conf fi }