diff options
author | ramon <ramongomez@us.es> | 2017-04-19 17:50:31 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-04-19 17:50:31 +0000 |
commit | 730bde55c3e0d7b525663c014dd75dac0239615b (patch) | |
tree | 144214941f287c5c98eaa54b9589a2ebc5d73162 /installer | |
parent | 3fd7818dadaf0781a144b607eff6b84d7a7387b6 (diff) |
#718: Instalador: obtener correctamente la versiĆ³n para componer fichero de descarga de paquetes de OGAgent.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5270 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/opengnsys_installer.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 99d7bcfd..41e456e2 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -1674,6 +1674,7 @@ if [ $? -ne 0 ]; then errorAndLog "Error while copying the server files!" exit 1 fi +INSTVERSION=$(awk '{print $2}' $INSTALL_TARGET/doc/VERSION.txt) # Instalar base de datos de OpenGnsys Admin. isInArray notinstalled "mysql-server" || isInArray notinstalled "mariadb-server" @@ -1733,7 +1734,6 @@ if [ $? -eq 0 ]; then 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_UPDATE_FILE="opengnsys/admin/Database/$OPENGNSYS_DATABASE-$INSTVERSION-$REPOVERSION.sql" if [ -f $WORKDIR/$OPENGNSYS_DB_UPDATE_FILE ]; then |