summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-05-23 08:08:52 +0000
committerramon <ramongomez@us.es>2014-05-23 08:08:52 +0000
commit094ac0dfb3de5d11bc64aad6cc273dd9002abe7d (patch)
treee1bad48b741ed03af68488307fcc7a2a710ed568 /installer
parentc525453542251ffe0cb2a1c10c422e48d6811ffe (diff)
#616: Corregir errata en activación de servicio MariaDB como alternativa a MySQL.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4273 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index 9c3d1ddb..0efcb4df 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -1666,13 +1666,22 @@ if [ $? -ne 0 ]; then
exit 1
fi
-# Instalar Base de datos de OpenGnSys Admin.
+# Instalar base de datos de OpenGnSys Admin.
isInArray notinstalled "mysql-server"
if [ $? -eq 0 ]; then
- service=$MYSQLSERV $ENABLESERVICE || service=$MARIADBSERV $ENABLESERVICE
+ # Habilitar gestor de base de datos (MySQL, si falla, MariaDB).
+ service=$MYSQLSERV
+ $ENABLESERVICE
+ if [ $? != 0 ]; then
+ service=$MARIADBSERV
+ $ENABLESERVICE
+ fi
+ # Activar gestor de base de datos.
$STARTSERVICE
+ # Asignar clave del usuario "root".
mysqlSetRootPassword "${MYSQL_ROOT_PASSWORD}"
else
+ # Si ya está instalado el gestor de bases de datos, obtener clave de "root",
mysqlGetRootPassword
fi