From 10576a85453d668572b20814f3256e43bcaf5b71 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 18 Sep 2014 15:16:22 +0200 Subject: [PATCH] In the manage action make sudo conserve the environment --- debian/portail-citoyen2.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/portail-citoyen2.init b/debian/portail-citoyen2.init index 7b92a0e..c9f9518 100644 --- a/debian/portail-citoyen2.init +++ b/debian/portail-citoyen2.init @@ -191,7 +191,7 @@ case "$1" in manage) shift if [ $(id -un) != "$USER" ]; then - sudo -H -u $USER /usr/bin/portail-citoyen-manage "$@" + sudo -E -H -u $USER python $MANAGE_SCRIPT "$@" else python $MANAGE_SCRIPT "$@" fi