فهرست منبع

Adjust mysql configure part to be equal for both installers.

Raphael Schneeberger 4 سال پیش
والد
کامیت
07d37635c7
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 0
      install/hst-install-debian.sh
  2. 0 1
      install/hst-install-ubuntu.sh

+ 2 - 0
install/hst-install-debian.sh

@@ -1508,6 +1508,7 @@ if [ "$mysql" = 'yes' ]; then
         mycnf="my-large.cnf"
     fi
 
+    # Run mysql_install_db 
     mysql_install_db >> $LOG
     # Remove symbolic link
     rm -f /etc/mysql/my.cnf
@@ -1518,6 +1519,7 @@ if [ "$mysql" = 'yes' ]; then
     systemctl start mysql >> $LOG
     check_result $? "mariadb start failed"
 
+    # Securing MariaDB installation
     mpass=$(gen_pass)
     echo -e "[client]\npassword='$mpass'\n" > /root/.my.cnf
     chmod 600 /root/.my.cnf

+ 0 - 1
install/hst-install-ubuntu.sh

@@ -1554,7 +1554,6 @@ if [ "$mysql" = 'yes' ]; then
     mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%"
     
     mysql -e "FLUSH PRIVILEGES;"
-
 fi