Ver código fonte

Remove symbolic link my.cnf

As discussed in Discord

Co-Authored-By: Alexandros Ioannides <[email protected]>
Jaap Marcus 5 anos atrás
pai
commit
eea4046c0b
2 arquivos alterados com 6 adições e 2 exclusões
  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
         mycnf="my-large.cnf"
     fi
-
-   # Configuring MariaDB
+    
+    #remove symbolic link
+    rm /etc/mysql/my.cnf
+    # Configuring MariaDB
     cp -f $HESTIA_INSTALL_DIR/mysql/$mycnf /etc/mysql/my.cnf
     mysql_install_db >> $LOG
 

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

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