changeset 1289:34c92dbfee7e

(issue44) Do not ask the user to confirm start on update
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 29 Sep 2014 13:34:19 +0200
parents 265583011f24
children d395e7876a87
files packaging/linux-installer.inc
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/packaging/linux-installer.inc	Mon Sep 29 13:12:58 2014 +0200
+++ b/packaging/linux-installer.inc	Mon Sep 29 13:34:19 2014 +0200
@@ -135,13 +135,15 @@
   echo "  $UN_RUNCMD ${instcfg[PREFIX]}/bin/trustbridge-uninstall.sh"
 
   echo "################################################################################"
-  if ! [ $(id -u) -eq 0 ]; then
-    getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge"
-    getxt "or press Control-C to quit the installer.\n"
-    read
-    "${instcfg[PREFIX]}/bin/trustbridge" &
-  else
-    getxt "You can now launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge"
+  if [ $UPDATE -eq 0 ]; then
+    if ! [ $(id -u) -eq 0 ]; then
+      getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge"
+      getxt "or press Control-C to quit the installer.\n"
+      read
+      "${instcfg[PREFIX]}/bin/trustbridge" &
+    else
+      getxt "You can now launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge"
+    fi
   fi
 }
 

http://wald.intevation.org/projects/trustbridge/