diff packaging/linux-installer.inc @ 1193:ec16e3d81278

Correctly print sudo or not sudo for the uninstaller runcommand
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 22 Sep 2014 16:31:31 +0200
parents 969970a83b6d
children 292a25c34aff
line wrap: on
line diff
--- a/packaging/linux-installer.inc	Mon Sep 22 16:27:00 2014 +0200
+++ b/packaging/linux-installer.inc	Mon Sep 22 16:31:31 2014 +0200
@@ -120,15 +120,17 @@
   if [ $SYSINST -eq 1 ]; then
     getxt "System wide installation successful.\n"
     RUNCMD="su -l $SUDO_USER -c "
+    UN_RUNCMD="sudo "
   else
     getxt "Single user installation successful.\n"
     RUNCMD=""
+    UN_RUNCMD=""
   fi
   getxt "TrustBridge has been installed to: '%s'\n\n" "${instcfg[PREFIX]}"
 
   getxt "To remove the application and the root certificates it has inserted,\n"
   getxt "call the uninstall command:\n"
-  echo "  $RUNCMD ${instcfg[PREFIX]}/bin/trustbridge-uninstall.sh"
+  echo "  $UN_RUNCMD ${instcfg[PREFIX]}/bin/trustbridge-uninstall.sh"
 
   echo "################################################################################"
   getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge"

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