diff options
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-x | installer/opengnsys_update.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index aa981c0a..b562c9cf 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -742,8 +742,13 @@ function updateWebFiles() # Copiar ficheros en la zona de descargas de OpenGnsys Web Console. function updateDownloadableFiles() { - local FILENAME=ogagentpkgs-$NEWVERSION.tar.gz - local TARGETFILE=$WORKDIR/$FILENAME + local VERSIONFILE OGVERSION FILENAME TARGETFILE + + # Obtener versiĆ³n a descargar. + VERSIONFILE="$INSTALL_TARGET/doc/VERSION.json" + OGVERSION="$(jq -r ".ogagent // \"$NEWVERSION\"" $VERSIONFILE 2>/dev/null || echo "$NEWVERSION")" + FILENAME="ogagentpkgs-$OGVERSION.tar.gz" + TARGETFILE=$WORKDIR/$FILENAME # Descargar archivo comprimido, si es necesario. if [ -s $PROGRAMDIR/$FILENAME ]; then |