We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6b17c1 commit 54404fcCopy full SHA for 54404fc
1 file changed
scripts/configure-system.sh
@@ -540,8 +540,11 @@ fi
540
###################
541
### Ad Blockers ###
542
543
-if does_bin_exist "pihole-FTL"; then
544
- PIHOLE_DNSMASQ_CONFIG_PATH="/etc/dnsmasq.d/01-pihole.conf"
+if does_bin_exist 'pihole' 'pihole-FTL'; then
+ PIHOLE_CONFIG_PATH="${ROOT_ETC}/pihole/pihole.toml"
545
+ PIHOLE_DNSMASQ_CONFIG_PATH="${ROOT_ETC}/dnsmasq.d/01-pihole.conf"
546
+
547
+ set_config_value --section 'webserver' --separator ' = ' "${PIHOLE_CONFIG_PATH}" port '8093o.8443os'
548
549
set_config_value "${PIHOLE_DNSMASQ_CONFIG_PATH}" "cache-size" $((DNS_CACHE_SIZE))
550
set_config_value "${PIHOLE_DNSMASQ_CONFIG_PATH}" "local-ttl" $((DNS_CACHE_TTL*60*3))
0 commit comments