summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2010-06-09 12:59:43 +0000
committerramon <ramongomez@us.es>2010-06-09 12:59:43 +0000
commitbc7dfe712ee73eed96b69b42fded7ca3e3168967 (patch)
treecd8081262ed30a76566d5171dbb38bec9697d0b0 /installer
parent6be59569e323747e0f9b3a1378822eb6812cf99e (diff)
Instalador actuliza estructura al cambiar versión de la BD; solución fallo tamaño de caché al reparticionar.
git-svn-id: https://opengnsys.es/svn/trunk@1034 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index 8c7c162a..2feedd7a 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -1144,6 +1144,17 @@ if [ $? -eq 0 ]; then
errorAndLog "Unable to locate $WORKDIR/$OPENGNSYS_DB_CREATION_FILE!!"
exit 1
fi
+else
+ # Si existe fichero ogBDAdmin-VersLocal-VersRepo.sql; aplicar cambios.
+ INSTVERSION=$(awk '{print $2}' $INSTALL_TARGET/doc/VERSION.txt)
+ REPOVERSION=$(awk '{print $2}' $WORKDIR/opengnsys/doc/VERSION.txt)
+ OPENGNSYS_DB_UPDADE_FILE="opengnsys/admin/Database/ogBDAdmin-$INSTVERSION-$REPOVERSION.sql"
+ if [ -f $WORKDIR/$OPENGNSYS_DB_UPDADE_FILE ]; then
+ echoAndLog "Updating tables from version $INSTVERSION to $REPOVERSION"
+ mysqlImportSqlFileToDb ${MYSQL_ROOT_PASSWORD} ${OPENGNSYS_DATABASE} $WORKDIR/$OPENGNSYS_DB_UPDADE_FILE
+ else
+ echoAndLog "Database unchanged."
+ fi
fi
# copiando paqinas web