Pass unmodified environment to sudo when running the manager

This commit is contained in:
Benjamin Dauvergne 2014-09-18 14:27:34 +02:00
parent 2fc38dd270
commit f3e5bd7b6f
1 changed files with 1 additions and 1 deletions

2
init.d
View File

@ -186,7 +186,7 @@ case "$1" in
manage)
shift
if [ $(id -un) != 'passerelle' ]; then
sudo -H -u passerelle python /usr/lib/$NAME/manage.py "$@"
sudo -E -H -u passerelle python /usr/lib/$NAME/manage.py "$@"
else
python /usr/lib/$NAME/manage.py "$@"
fi