fix publicip

This commit is contained in:
2026-03-05 06:02:10 +01:00
parent a5792218a5
commit fa71627030

View File

@@ -148,6 +148,12 @@ echo
read -rp "Timezone (e.g. Europe/Amsterdam): " timezone < /dev/tty
read -rp "Domain (e.g. example.com): " domain < /dev/tty
# Public IP (tries multiple services)
publicip="$(curl -fsS https://api.ipify.org || curl -fsS https://ifconfig.me || echo "UNKNOWN")"
# Local IP (first non-loopback)
localip="$(hostname -I | awk '{print $1}')"
echo "--------------------------------------------------------"
echo "please double-check your DNS records to ensure they are set. the following dns records need to be set:"
echo ""
@@ -159,11 +165,7 @@ echo "once you've done this, press any key to continue"
read -n 1 -s -r -p ""
# Public IP (tries multiple services)
publicip="$(curl -fsS https://api.ipify.org || curl -fsS https://ifconfig.me || echo "UNKNOWN")"
# Local IP (first non-loopback)
localip="$(hostname -I | awk '{print $1}')"
# generate random passwords for DB hosts and other secrets