diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2020-03-05 19:13:05 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2020-03-05 19:13:05 +0100 |
commit | 08815ac98810f0c4737ff7370b2b78c50b909c2f (patch) | |
tree | c33eacfc8732302dcc62b3948c3a2731db816939 | |
parent | 2b223568dae2a2d98bef4be73e48e49a29f1d281 (diff) |
#959: Installer copies the new MySQL configuration template to enable the event scheduler automatically.
-rwxr-xr-x | installer/opengnsys_installer.sh | 3 | ||||
-rw-r--r-- | server/etc/mysqld-og.cnf | 3 |
2 files changed, 6 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 diff --git a/server/etc/mysqld-og.cnf b/server/etc/mysqld-og.cnf new file mode 100644 index 00000000..b7ea14c0 --- /dev/null +++ b/server/etc/mysqld-og.cnf @@ -0,0 +1,3 @@ +[mysqld] +event_scheduler = ON + |