#!/bin/bash

# Post-install/update specifics for AdGuard Home — dispatched by appUpdateSpecifics
# (containers/<app>/scripts/<app>_update_specifics.sh defining appUpdateSpecifics_<app>).
appUpdateSpecifics_adguard() {
    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
}
