Browse Source

Remove symbolic link my.cnf

As discussed in Discord

Co-Authored-By: Alexandros Ioannides <[email protected]>
Jaap Marcus 5 years ago
parent
commit
eea4046c0b
2 changed files with 6 additions and 2 deletions
  1. 4 2
      install/hst-install-debian.sh
  2. 2 0
      install/hst-install-ubuntu.sh

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

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

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

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