Commit e76a1b2d authored by Aaron Griffin's avatar Aaron Griffin
Browse files

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: default avatarAaron Griffin <aaronmgriffin@gmail.com>
parent e8490b3f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"