fix publicip
This commit is contained in:
10
deploy.sh
10
deploy.sh
@@ -148,6 +148,12 @@ echo
|
|||||||
read -rp "Timezone (e.g. Europe/Amsterdam): " timezone < /dev/tty
|
read -rp "Timezone (e.g. Europe/Amsterdam): " timezone < /dev/tty
|
||||||
read -rp "Domain (e.g. example.com): " domain < /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 "--------------------------------------------------------"
|
||||||
echo "please double-check your DNS records to ensure they are set. the following dns records need to be set:"
|
echo "please double-check your DNS records to ensure they are set. the following dns records need to be set:"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -159,11 +165,7 @@ echo "once you've done this, press any key to continue"
|
|||||||
read -n 1 -s -r -p ""
|
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
|
# generate random passwords for DB hosts and other secrets
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user