Browse Source

Merge pull request #1244 from hestiacp/fix/2020-10-rm-my.cnf-symbolic-link

Remove symbolic link my.cnf
Raphael Schneeberger 5 years ago
parent
commit
6a43178f3d
2 changed files with 8 additions and 2 deletions
  1. 5 2
      install/hst-install-debian.sh
  2. 3 0
      install/hst-install-ubuntu.sh

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

@@ -1323,8 +1323,11 @@ if [ "$mysql" = 'yes' ]; then
     if [ $memory -gt 3900000 ]; then
         mycnf="my-large.cnf"
     fi
-
-   # Configuring MariaDB
+    
+    # Remove symbolic link
+    rm -f /etc/mysql/my.cnf
+    
+    # Configuring MariaDB
     cp -f $HESTIA_INSTALL_DIR/mysql/$mycnf /etc/mysql/my.cnf
     mysql_install_db >> $LOG
 

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

@@ -1364,6 +1364,9 @@ if [ "$mysql" = 'yes' ]; then
         mycnf="my-large.cnf"
     fi
 
+    # Remove symbolic link
+    rm -f /etc/mysql/my.cnf
+    
     # Configuring MariaDB
     cp -f $HESTIA_INSTALL_DIR/mysql/$mycnf /etc/mysql/my.cnf
     mysql_install_db >> $LOG