#!/bin/bash

# Post-install/update specifics for Pi-hole — dispatched by appUpdateSpecifics.
appUpdateSpecifics_pihole() {
    local app_name="$1"
    if [[ $CFG_REQUIREMENT_DNS_UPDATER == "true" ]]; then
        updateDNS "$app_name" install
    fi
    # Split-horizon local DNS: app subdomains resolve to the box on the LAN.
    declare -F setupLocalDnsRewrites >/dev/null 2>&1 && setupLocalDnsRewrites
}
