From 493dfb598d3c91dd8f0358d247ef96df9696600d Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 7 Oct 2024 10:40:56 +0400 Subject: [PATCH] fix public_hostname --- scripts/miaou | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/miaou b/scripts/miaou index 312612b..3b8fa4b 100755 --- a/scripts/miaou +++ b/scripts/miaou @@ -209,7 +209,7 @@ function build_dmz_certbot { subDomain=${fqdn%".${domain}"} echo "TODO: fqdn=${fqdn}, domain=${domain}" - local server_ip public_hostname + local server_ip server_ip=$(dig +short A "$fqdn") if [[ $server_ip == "$my_ip" ]]; then