From edfcca896a9a31ada60d73fc9d4ad6f19a5060b3 Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Wed, 4 Dec 2019 18:54:28 +0100 Subject: #914: Avoid installation on a previously installed system. --- installer/opengnsys_installer.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'installer/opengnsys_installer.sh') diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 8af3fa98..b7752655 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -1620,6 +1620,12 @@ if [ "$(whoami)" != 'root' ]; then fi globalSetup +# Comprobar instalación previa. +if cat $INSTALL_TARGET/doc/VERSION.* &>/dev/null; then + echo "ERROR: OpenGnsys is already installed. Run \"$INSTALL_TARGET/lib/opengnsys_update.sh\" as root to update." + exit 2 +fi + echoAndLog "OpenGnsys installation begins at $(date)" # Introducir datos de configuración y establecer variables globales. userData -- cgit v1.2.3-18-g5258