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}"