Skip to content

Commit 07d3763

Browse files
committed
Adjust mysql configure part to be equal for both installers.
1 parent def9d43 commit 07d3763

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

install/hst-install-debian.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

install/hst-install-ubuntu.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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-
15581557
fi
15591558

15601559

0 commit comments

Comments
 (0)