We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a651238 commit 22186b5Copy full SHA for 22186b5
2 files changed
install/hst-install-debian.sh
@@ -1518,6 +1518,9 @@ if [ "$mysql" = 'yes' ]; then
1518
systemctl start mysql >> $LOG
1519
check_result $? "mariadb start failed"
1520
1521
+ echo -e "[client]\npassword='$mpass'\n" > /root/.my.cnf
1522
+ chmod 600 /root/.my.cnf
1523
+
1524
# Ater root password
1525
mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '$mpass'; FLUSH PRIVILEGES;"
1526
# Remove root login from remote servers
install/hst-install-ubuntu.sh
@@ -1540,7 +1540,6 @@ if [ "$mysql" = 'yes' ]; then
1540
1541
# Securing MariaDB installation
1542
mpass=$(gen_pass)
1543
- mysqladmin -u root password $mpass >> $LOG
1544
echo -e "[client]\npassword='$mpass'\n" > /root/.my.cnf
1545
chmod 600 /root/.my.cnf
1546
0 commit comments