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