summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_installer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installer/opengnsys_installer.sh')
-rwxr-xr-xinstaller/opengnsys_installer.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index 6c7c89c3..354cfdbd 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -217,6 +217,7 @@ case "$OSDISTRIB" in
INETDSERV=xinetd
INETDCFGDIR=/etc/xinetd.d
MYSQLSERV=mysql
+ MYSQLCFGDIR=/etc/mysql/mysql.conf.d
MARIADBSERV=mariadb
PHPFPMSERV=php-fpm
RSYNCSERV=rsync
@@ -1743,6 +1744,8 @@ INSTVERSION=$(jq -r '.version' $INSTALL_TARGET/doc/VERSION.json)
# Instalar base de datos de OpenGnsys Admin.
isInArray notinstalled "mysql-server" || isInArray notinstalled "mariadb-server"
if [ $? -eq 0 ]; then
+ # Copiar plantilla de configuraciĆ³n de MySQL.
+ cp $WORKDIR/opengnsys/server/etc/mysqld-og.conf $MYSQLCFGDIR 2>/dev/null
# Habilitar gestor de base de datos (MySQL, si falla, MariaDB).
service=$MYSQLSERV
$ENABLESERVICE