In the manage action make sudo conserve the environment
This commit is contained in:
parent
7a458899b6
commit
10576a8545
|
@ -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
|
||||
|
|
Reference in New Issue