1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-11-08 04:41:33 -05:00

Update install.sh

This commit is contained in:
Tommy 2021-11-02 01:48:00 -04:00 committed by GitHub
parent af4e443cb4
commit cfbd78dc85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -852,7 +852,7 @@ EOF
} }
database_host_reset(){ 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` adminpassword=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`
Q0="SET old_passwords=0;" Q0="SET old_passwords=0;"
Q1="SET PASSWORD FOR 'admin'@'$SERVER_IP' = PASSWORD('$adminpassword');" Q1="SET PASSWORD FOR 'admin'@'$SERVER_IP' = PASSWORD('$adminpassword');"