In the manage action make sudo conserve the environment

This commit is contained in:
Benjamin Dauvergne 2014-09-18 15:16:22 +02:00
parent 7a458899b6
commit 10576a8545
1 changed files with 1 additions and 1 deletions

View File

@ -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