[PATCH 2 of 3] Use su -l instead of plain su to get userenv

Wald Commits scm-commit at wald.intevation.org
Wed Sep 10 16:41:41 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1410359509 -7200
# Node ID 709a7633a2c6f736d48b14f565d7fa938e59daef
# Parent  4e93a87d89eb76c793f16c500add8c7f71323958
Use su -l instead of plain su to get userenv.

diff -r 4e93a87d89eb -r 709a7633a2c6 packaging/linux-installer.inc.in
--- a/packaging/linux-installer.inc.in	Wed Sep 10 16:18:20 2014 +0200
+++ b/packaging/linux-installer.inc.in	Wed Sep 10 16:31:49 2014 +0200
@@ -254,7 +254,7 @@
     echo "      'sudo $0 -d'"
     getxt "And install it again without sudo:\n"
     echo "       $0"
-    RUNCMD="su $SUDO_USER -c "
+    RUNCMD="su -l $SUDO_USER -c "
   else
     getxt "If you want to change the certificates of all users\n"
     getxt "uninstall it with:\n"


More information about the Trustbridge-commits mailing list