mirror of
https://github.com/YunoHost-Apps/pihole_ynh.git
synced 2024-09-03 20:05:58 +02:00
Enhance regenconf. fix #2
This commit is contained in:
parent
0fd75e059e
commit
93e2b5875e
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@ do_pre_regen() {
|
||||||
cp -a "/etc/dnsmasq.d/01-pihole.conf" "$temp_dir"
|
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/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"
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue