فهرست منبع

Changed config folder due to MariaDB 10.5

eris 5 سال پیش
والد
کامیت
b205abd75f
5فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 2 1
      func/upgrade.sh
  2. 1 0
      install/deb/mysql/my-large.cnf
  3. 1 0
      install/deb/mysql/my-medium.cnf
  4. 1 0
      install/deb/mysql/my-small.cnf
  5. 1 1
      install/upgrade/manual/upgrade_mariadb.sh

+ 2 - 1
func/upgrade.sh

@@ -435,7 +435,8 @@ upgrade_start_backup() {
                 echo "      ---- mysql"
                 echo "      ---- mysql"
             fi
             fi
             cp -f /etc/mysql/*.cnf $HESTIA_BACKUP/conf/mysql/
             cp -f /etc/mysql/*.cnf $HESTIA_BACKUP/conf/mysql/
-            cp -f /etc/mysql/conf.d/*.cnf $HESTIA_BACKUP/conf/mysql/      
+            cp -f /etc/mysql/conf.d/*.cnf $HESTIA_BACKUP/conf/mysql/ > /dev/null 2>&1
+            cp -f /etc/mysql/mariadb.conf.d/*.cnf $HESTIA_BACKUP/conf/mysql/ > /dev/null 2>&1       
         fi
         fi
         if [[ "$DB_SYSTEM" =~ "pgsql" ]]; then
         if [[ "$DB_SYSTEM" =~ "pgsql" ]]; then
             if [ "$DEBUG_MODE" = "true" ]; then
             if [ "$DEBUG_MODE" = "true" ]; then

+ 1 - 0
install/deb/mysql/my-large.cnf

@@ -40,3 +40,4 @@ interactive_timeout=50
 long_query_time=5
 long_query_time=5
 
 
 !includedir /etc/mysql/conf.d/
 !includedir /etc/mysql/conf.d/
+!includedir /etc/mysql/mariadb.conf.d/

+ 1 - 0
install/deb/mysql/my-medium.cnf

@@ -39,3 +39,4 @@ interactive_timeout=50
 long_query_time=5
 long_query_time=5
 
 
 !includedir /etc/mysql/conf.d/
 !includedir /etc/mysql/conf.d/
+!includedir /etc/mysql/mariadb.conf.d/

+ 1 - 0
install/deb/mysql/my-small.cnf

@@ -39,3 +39,4 @@ interactive_timeout=50
 long_query_time=5
 long_query_time=5
 
 
 !includedir /etc/mysql/conf.d/
 !includedir /etc/mysql/conf.d/
+!includedir /etc/mysql/mariadb.conf.d/

+ 1 - 1
install/upgrade/manual/upgrade_mariadb.sh

@@ -53,6 +53,6 @@ apt remove -qq mariadb-server -y  > /dev/null 2>&1
 
 
 # Install new version and run upgrader
 # Install new version and run upgrader
 echo "Installing new MariaDB Server, start and run upgrade..."
 echo "Installing new MariaDB Server, start and run upgrade..."
-apt install -qq mariadb-server -y  > /dev/null 2>&1
+apt install -qq mariadb-server -y 
 systemctl start mysql > /dev/null 2>&1
 systemctl start mysql > /dev/null 2>&1
 mysql_upgrade
 mysql_upgrade