Skip to content

Commit 54404fc

Browse files
committed
PiHole configs
1 parent c6b17c1 commit 54404fc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/configure-system.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,11 @@ fi
540540
###################
541541
### Ad Blockers ###
542542
###################
543-
if does_bin_exist "pihole-FTL"; then
544-
PIHOLE_DNSMASQ_CONFIG_PATH="/etc/dnsmasq.d/01-pihole.conf"
543+
if does_bin_exist 'pihole' 'pihole-FTL'; then
544+
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'
545548

546549
set_config_value "${PIHOLE_DNSMASQ_CONFIG_PATH}" "cache-size" $((DNS_CACHE_SIZE))
547550
set_config_value "${PIHOLE_DNSMASQ_CONFIG_PATH}" "local-ttl" $((DNS_CACHE_TTL*60*3))

0 commit comments

Comments
 (0)