From fc1f49f4b604ae9010b2edc7a1a556646ff6dd3c 2017-08-21 16:15:34 From: drtyhlpr Date: 2017-08-21 16:15:34 Subject: [PATCH] Fix: preserve user environment when using sudo (function as_nobody) --- diff --git a/functions.sh b/functions.sh index 64b5108..1ad716c 100644 --- a/functions.sh +++ b/functions.sh @@ -35,7 +35,7 @@ chroot_exec() { as_nobody() { # Exec command as user nobody - sudo -u nobody LANG=C LC_ALL=C $* + sudo -E -u nobody LANG=C LC_ALL=C $* } install_readonly() {