Set $HOME before dropping permissions
Because we need a root user to chroot, when we drop permissions to 'nobody', we're still using HOME=/root Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
e8490b3f14
commit
e76a1b2def
|
@ -180,6 +180,7 @@ fi
|
|||
#!/bin/bash
|
||||
export LANG=$LOCALE
|
||||
cd /build
|
||||
export HOME=/build
|
||||
sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED
|
||||
EOF
|
||||
) > "$uniondir/chrootbuild"
|
||||
|
|
Loading…
Reference in New Issue