summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredy <aluque@soleta.eu>2018-06-14 13:06:29 +0200
committerFredy <aluque@soleta.eu>2018-06-14 13:06:29 +0200
commitd3a6373d608266277be0e29eedfde03bfab257a6 (patch)
tree048a683c0e7e81b8fb5bb122cd665ef64472067b
parent43fa7ad384cf5735b24e0bb4449ec47005faa4c9 (diff)
#837 devel update script
-rwxr-xr-xinstaller/pkg-generator/DEBIAN/postinst6
-rwxr-xr-xinstaller/pkg-generator/DEBIAN/preinst10
2 files changed, 6 insertions, 10 deletions
diff --git a/installer/pkg-generator/DEBIAN/postinst b/installer/pkg-generator/DEBIAN/postinst
index 8bb2317e..68182658 100755
--- a/installer/pkg-generator/DEBIAN/postinst
+++ b/installer/pkg-generator/DEBIAN/postinst
@@ -1263,11 +1263,7 @@ if [ "$RET" = "true" ]; then
echo "Opengnsys already installed; Updating"
/tmp/opengnsys_installer/opengnsys_git_update.sh
- if [ $? -eq 0 ]; then
- echo "Updated!!"
- exit 0
- fi
-fi
+ fi
echoAndLog "OpenGnsys installation begins at $(date)"
diff --git a/installer/pkg-generator/DEBIAN/preinst b/installer/pkg-generator/DEBIAN/preinst
index fed7ea14..756852ba 100755
--- a/installer/pkg-generator/DEBIAN/preinst
+++ b/installer/pkg-generator/DEBIAN/preinst
@@ -1,22 +1,22 @@
#!/bin/bash
# This script is executed before the package it belongs to is unpacked
-# from its Debian archive (".deb") file. Many 'preinst' scripts stop
+# from its Debian archive (".deb") file. Many 'preinst' scripts stop
# services for packages which are being upgraded until their installation
# or upgrade is completed (following the successful execution of the
# 'postinst' script).
# test if it is already installed using old installer script
-VFILE=/opt/opengnsys/doc/VERSION.txt
+VFILE=/opt/opengnsys/doc/VERSION.txt
if [ -f $VFILE ]; then
echo "##############################################################"
- echo "ERROR: File $VFILE exists. This could"
+ echo "ERROR: File $VFILE exists. This could"
echo "mean that OpenGnsys has been previously installed using the"
- echo "installer script."
+ echo "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 "Terminating from preinst!"
echo "##############################################################"
exit 1
fi