mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-09 05:01:33 -05:00
Update install.sh
This commit is contained in:
parent
af4e443cb4
commit
cfbd78dc85
@ -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');"
|
||||||
|
Loading…
Reference in New Issue
Block a user