From 7e1a4220d0b3fa794381d1f8a5ed69fcc6419741 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 23 Feb 2024 22:53:40 +0100 Subject: [PATCH] directus bootstrap 6 --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index b71c95f..3f65ad0 100644 --- a/install.sh +++ b/install.sh @@ -200,6 +200,9 @@ fi echo -e "${PURPLE}${BOLD}Enter the domain name of the website${RESET}" read domain_name ip=$(hostname -I) +if [[ "${ip: -1}" == " " ]]; then + ip="${ip%?}" +fi echo -e "${PURPLE}${BOLD}Configure the ${domain_name} DNS ZONE as the following${RESET}" echo -e "${PURPLE}Domain : ${domain_name} | Type : A | Target : ${ip}${RESET}" echo -e "${PURPLE}Domain : cms.${domain_name} | Type : A | Target : ${ip}${RESET}"