qemush : préserver l'environnement sauf le homedir
This commit is contained in:
parent
f7e1c39975
commit
b5cd533031
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ exec_as() {
|
|||
shift
|
||||
|
||||
if [ "$(whoami)" != "$user" ]; then
|
||||
exec sudo -u "$user" "$0" "$@"
|
||||
exec sudo -E -H -u "$user" -- "$0" "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue