diff options
author | Fredy <aluque@soleta.eu> | 2018-06-14 11:37:23 +0200 |
---|---|---|
committer | Fredy <aluque@soleta.eu> | 2018-06-14 11:37:23 +0200 |
commit | 6598aa9c1a70492c718bbb9cfb86c6d79fc259de (patch) | |
tree | 92e73ef9bdd296a0fd7bfb9d569f3d11c931b7ef | |
parent | 1008d8eb29139a612ae98524acedad6af8599a11 (diff) |
#837 devel update script
-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 |