[PATCH 1 of 2] Correctly print sudo or not sudo for the uninstaller runcommand

Wald Commits scm-commit at wald.intevation.org
Mon Sep 22 16:32:08 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1411396291 -7200
# Node ID ec16e3d812781139109285199dd1e33d6dddb10b
# Parent  7839d3d696a1475fb009ca5c47153ae9b5fe341d
Correctly print sudo or not sudo for the uninstaller runcommand

diff -r 7839d3d696a1 -r ec16e3d81278 packaging/linux-installer.inc
--- 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"


More information about the Trustbridge-commits mailing list