qemush : préserver l'environnement sauf le homedir

This commit is contained in:
Ahurac 2024-01-21 12:55:32 +01:00
parent f7e1c39975
commit b5cd533031

View file

@ -8,7 +8,7 @@ exec_as() {
shift
if [ "$(whoami)" != "$user" ]; then
exec sudo -u "$user" "$0" "$@"
exec sudo -E -H -u "$user" -- "$0" "$@"
fi
}