1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-12-23 02:04:42 +02:00

Update mysql-install.sh

tweak
This commit is contained in:
tteckster 2024-10-10 08:00:58 -04:00 committed by GitHub
parent e9ec4c4f8e
commit a10a0f09dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,8 +37,9 @@ msg_ok "Installed MySQL"
msg_info "Configure MySQL Server"
ADMIN_PASS="$(openssl rand -base64 18 | cut -c1-13)"
$STD mysql -uroot -p"$ADMIN_PASS" -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '$ADMIN_PASS'; FLUSH PRIVILEGES;"
echo "" >>~/mysql.creds
echo -e "MySQL Root Password: $ADMIN_PASS" >>~/mysql.creds
echo "" >~/mysql.creds
echo -e "MySQL user: root" >>~/mysql.creds
echo -e "MySQL password: $ADMIN_PASS" >>~/mysql.creds
msg_ok "MySQL Server configured"
read -r -p "Would you like to add PhpMyAdmin? <y/N> " prompt