From cfbd78dc8574ddfb7c4c8ebff28f98fd1d2bfd08 Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 2 Nov 2021 01:48:00 -0400 Subject: [PATCH] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 3240171..a47c4e6 100644 --- a/install.sh +++ b/install.sh @@ -852,7 +852,7 @@ EOF } database_host_reset(){ - SERVER_IP=$(curl -s http://checkip.amazonaws.com) + SERVER_IP=$(dig +short myip.opendns.com @resolver1.opendns.com -4) adminpassword=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1` Q0="SET old_passwords=0;" Q1="SET PASSWORD FOR 'admin'@'$SERVER_IP' = PASSWORD('$adminpassword');"