diff options
author | Irina Gómez <irinagomez@us.es> | 2021-03-04 11:09:09 +0100 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2021-03-04 11:09:09 +0100 |
commit | e98f7d14f1207506757ef9681d8aa4834024717a (patch) | |
tree | 185cbfd840cc773ed208b11e9c4fc9d8ea21342d | |
parent | fa46368c6c273cf47097ce3b08798ec538dfcedc (diff) |
#1026 The installation and upgrade scripts display messages with the OpenGnsys version prerequisites; in case of update, they also show the current version.
-rwxr-xr-x | installer/opengnsys_installer.sh | 7 | ||||
-rwxr-xr-x | installer/opengnsys_update.sh | 17 |
2 files changed, 24 insertions, 0 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 09a1ee5d..cab94c9e 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -1657,6 +1657,13 @@ if cat $INSTALL_TARGET/doc/VERSION.* &>/dev/null; then exit 2 fi +echoAndLog "The OpenGnsys version 1.2.0 installation was tested with full functionality on Ubuntu 18.04 with PHP 7.2." +echo -n "Do you want to continue? [y/N]: " +read -r GO_ON +if [ "${GO_ON^^}" != "Y" ]; then + echoAndLog "We left the installation." && exit +fi + echoAndLog "OpenGnsys installation begins at $(date)" # Introducir datos de configuración y establecer variables globales. userData diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 66419ab6..4b244b28 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -55,6 +55,23 @@ fi source $INSTALL_TARGET/lib/ogfunctions.sh || exit 1 +echo -n "Current version: " +if [ -r $INSTALL_TARGET/doc/VERSION.json ]; then + jq -j '"OpenGnsys", .version, " ", .release' $INSTALL_TARGET/doc/VERSION.json +else + cat $INSTALL_TARGET/doc/VERSION.txt +fi + +echo -e "\nThe OpenGnsys version 1.2.0 was tested with full functionality on Ubuntu 18.04 with PHP 7.2." +echo " * If the update is made from a version prior to 1.1.1c, you must disable strict mode in mysql by adding in the configuration file: sql_mode = NO_ENGINE_SUBSTITUTION" +echo " * If you are going to perform an update from version 1.1.0, it is necessary to start with the operating system, moving it from Ubuntu 16.04 to Ubuntu 18.04, and then perform the OpenGnsys update." + +echo -e -n "\nDo you want to continue? [y/N]: " +read -r GO_ON +if [ "${GO_ON^^}" != "Y" ]; then + echo "We left the installation." && exit +fi + # Cargar configuración de acceso a la base de datos. if [ -r $INSTALL_TARGET/etc/ogserver.json ]; then source_json_config $INSTALL_TARGET/etc/ogserver.json |