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:
Aaron Griffin 2008-03-17 12:55:24 -05:00
parent e8490b3f14
commit e76a1b2def
1 changed files with 1 additions and 0 deletions

View File

@ -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"