summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_update.sh
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2021-03-04 11:09:09 +0100
committerIrina Gómez <irinagomez@us.es>2021-03-04 11:09:09 +0100
commite98f7d14f1207506757ef9681d8aa4834024717a (patch)
tree185cbfd840cc773ed208b11e9c4fc9d8ea21342d /installer/opengnsys_update.sh
parentfa46368c6c273cf47097ce3b08798ec538dfcedc (diff)
#1026 The installation and upgrade scripts display messages with the OpenGnsys version prerequisites; in case of update, they also show the current version.
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-xinstaller/opengnsys_update.sh17
1 files changed, 17 insertions, 0 deletions
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