From fa71627030a059fa9f7a4646a89614d30a4ea81d Mon Sep 17 00:00:00 2001 From: SDGDen Date: Thu, 5 Mar 2026 06:02:10 +0100 Subject: [PATCH] fix publicip --- deploy.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index a6b262b..c7fc839 100644 --- a/deploy.sh +++ b/deploy.sh @@ -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