File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1508,6 +1508,7 @@ if [ "$mysql" = 'yes' ]; then
15081508 mycnf=" my-large.cnf"
15091509 fi
15101510
1511+ # Run mysql_install_db
15111512 mysql_install_db >> $LOG
15121513 # Remove symbolic link
15131514 rm -f /etc/mysql/my.cnf
@@ -1518,6 +1519,7 @@ if [ "$mysql" = 'yes' ]; then
15181519 systemctl start mysql >> $LOG
15191520 check_result $? " mariadb start failed"
15201521
1522+ # Securing MariaDB installation
15211523 mpass=$( gen_pass)
15221524 echo -e " [client]\npassword='$mpass '\n" > /root/.my.cnf
15231525 chmod 600 /root/.my.cnf
Original file line number Diff line number Diff line change @@ -1554,7 +1554,6 @@ if [ "$mysql" = 'yes' ]; then
15541554 mysql -e " DELETE FROM mysql.db WHERE Db='test' OR Db='test\\ _%"
15551555
15561556 mysql -e " FLUSH PRIVILEGES;"
1557-
15581557fi
15591558
15601559
You can’t perform that action at this time.
0 commit comments