diff options
-rwxr-xr-x | installer/pkg-generator/DEBIAN/postinst | 11 | ||||
-rwxr-xr-x | installer/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh | 10 |
2 files changed, 14 insertions, 7 deletions
diff --git a/installer/pkg-generator/DEBIAN/postinst b/installer/pkg-generator/DEBIAN/postinst index 35890e0d..e410eaf3 100755 --- a/installer/pkg-generator/DEBIAN/postinst +++ b/installer/pkg-generator/DEBIAN/postinst @@ -1259,11 +1259,14 @@ db_go || true VFILE=/opt/opengnsys/doc/VERSION.txt if [ -f $VFILE ]; then - echo "File $VFILE exists. This could mean that OpenGnsys has been previously" - echo "installed using the installer script. This apt package is not suitable" - echo "for upgrading and may break the system. If you are shure what you are" - echo "doing you could delete or rename that file and try again" + echo "##############################################################" + echo "ERROR: File $VFILE exists. This could mean that OpenGnsys" + echo "has been previously installed using the installer script." + echo "This apt package is not suitable for upgrading and may break" + echo "the system. If you are shure what you are doing you could" + echo "delete or rename that file and try again" echo "Terminating!" + echo "##############################################################" exit 1 fi diff --git a/installer/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh b/installer/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh index b49d3d8b..70029ed4 100755 --- a/installer/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh +++ b/installer/pkg-generator/tmp/opengnsys_installer/opengnsys_git_update.sh @@ -919,10 +919,14 @@ fi VFILE=/opt/opengnsys/doc/VERSION.txt if [ -f $VFILE ]; then - echo "File $FILE exists. This could mean that OpenGnsys has been previously" - echo "installed using the installer script. This apt package is not suitable" - echo "for upgrading and may break the system" + echo "##############################################################" + echo "ERROR: File $VFILE exists. This could mean that OpenGnsys" + echo "has been previously installed using the installer script." + echo "This apt package is not suitable for upgrading and may break" + echo "the system. If you are shure what you are doing you could" + echo "delete or rename that file and try again" echo "Terminating!" + echo "##############################################################" exit 1 fi |