From: Christian Heller Date: Sat, 19 Apr 2025 13:41:43 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/foo.html?a=commitdiff_plain;h=4ae5a567bfa6f4d5f7b33e9ac8ba0d15e4048b52;p=config Fix. --- diff --git a/bookworm/scripts/setup_server.sh b/bookworm/scripts/setup_server.sh index 2d4d90d..4ae0bf3 100755 --- a/bookworm/scripts/setup_server.sh +++ b/bookworm/scripts/setup_server.sh @@ -28,7 +28,7 @@ echo " it's: ${EXTERNAP_IP}" if [ ! -z "FQDN" ]; then echo "Ensuring provided FQDN ${FQDN} maps to it …" - IP_BY_DNS=$(getent ahostsv4 | head -1 | cut -d' ' -f1) + IP_BY_DNS=$(getent ahostsv4 "${FQDN}" | head -1 | cut -d' ' -f1) if [ ! "${IP_BY_DNS}" = "${EXTERNAL_IP}" ]; then echo "" abort "DNS mapping provided FQDN '${FQDN}' to ${IP_BY_DNS} rather than this system's external IP ${EXTERNAL_IP}."