fix ipv6 (#96)

This commit is contained in:
Saeed Vaziry
2024-01-27 21:34:36 +01:00
committed by GitHub
parent 0420babdef
commit 55bf8b8ecf
4 changed files with 9 additions and 5 deletions

View File

@ -4,7 +4,8 @@ export DEBIAN_FRONTEND=noninteractive
export NEEDRESTART_MODE=a
export V_USERNAME=vito
export V_PASSWORD=$(openssl rand -base64 12)
export V_IP_ADDRESS=$(curl https://freeipapi.com)
export V_IP_ADDRESS=$(curl https://freeipapi.com --silent)
export V_IS_DOMAIN=1
echo "Enter the domain you want to install Vito? (your-domain.com)"
echo "Hit enter to use your IP address (${V_IP_ADDRESS}):"
@ -13,6 +14,7 @@ read V_DOMAIN
if [[ -z "${V_DOMAIN}" ]]; then
export V_DOMAIN=${V_IP_ADDRESS}
export V_IS_DOMAIN=0
fi
echo "Enter your email address:"