#!/bin/bash # Unbound install hooks — place the LibrePortal drop-in config. # # The image ships a working recursive unbound.conf that ends with # include-toplevel: "/usr/local/unbound/conf.d/*.conf" # so our file is added to it rather than replacing it. Nothing here needs to # know how to configure a resolver; we contribute access-control, hardening and # cache sizing, and upstream keeps owning the parts that change between # Unbound releases. unbound_install_post_compose() { local app_name="$1" # A previous attempt that started the container before this file existed # leaves conf.d as a Docker-created stub, and the copy below would then land # inside it. Same failure that kept Nextcloud's nginx from starting. repairStubDirForFile "$(appDir "$app_name")/conf.d/libreportal.conf" "loud" local result result=$(copyResource "$app_name" "libreportal.conf" "conf.d" | runInstallWrite -a "$logs_dir/$docker_log_file" 2>&1) checkSuccess "Copying libreportal.conf to $(appDir "$app_name")/conf.d" monitoringToggleAppConfig "$app_name" "conf.d/libreportal.conf" }