Reset environment for builduser
https://git.archlinux.org/devtools.git/commit/?id=76dec8507e2e767db07f967644ed8958f85cd5a2
This commit is contained in:
parent
c89c9254a0
commit
46717354ed
1 changed files with 4 additions and 3 deletions
|
@ -239,9 +239,10 @@ EOF
|
|||
# so no global variables
|
||||
_chrootbuild() {
|
||||
. /etc/profile
|
||||
export HOME=/build
|
||||
cd /startdir
|
||||
sudo -u builduser makepkg "$@"
|
||||
# export HOME=/build
|
||||
# cd /startdir
|
||||
# sudo -u builduser makepkg "$@"
|
||||
sudo -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
|
||||
}
|
||||
|
||||
_chrootnamcap() {
|
||||
|
|
Loading…
Reference in a new issue