From e98f7d14f1207506757ef9681d8aa4834024717a Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Thu, 4 Mar 2021 11:09:09 +0100 Subject: #1026 The installation and upgrade scripts display messages with the OpenGnsys version prerequisites; in case of update, they also show the current version. --- installer/opengnsys_installer.sh | 7 +++++++ installer/opengnsys_update.sh | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) (limited to 'installer') 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 -- cgit v1.2.3-18-g5258