make wrapper script set HOME to eobuilder user (#44242)

This commit is contained in:
Frédéric Péters 2020-06-18 13:10:23 +02:00
parent 5fa65a7190
commit 812a4f2a0c
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
if [ "$(whoami)" != "eobuilder" ]; then
if which sudo; then
if sudo -v -u eobuilder; then
sudo -u eobuilder eobuilder "$@"
sudo -H -u eobuilder eobuilder "$@"
exit $?
fi
echo "You must run this script with eobuilder user"