#!/bin/bash

# Unbound install hooks — drop unbound.conf into etc/ and toggle the
# monitoring marker in it (the driver already handled docker-compose.yml).

unbound_install_post_compose()
{
    local app_name="$1"

    local result
    result=$(copyResource "$app_name" "unbound.conf" "etc" | runInstallWrite -a "$logs_dir/$docker_log_file" 2>&1)
    checkSuccess "Copying unbound.conf to containers folder."

    monitoringToggleAppConfig "$app_name" "etc/unbound.conf"
}
