[infra] chown $WORK as well: it will be mounted from outside of container

This commit is contained in:
Mike Aizatsky 2016-12-27 13:47:44 -08:00 committed by GitHub
parent f228f66a86
commit c4ac474aef
1 changed files with 1 additions and 2 deletions

View File

@ -45,8 +45,7 @@ echo "---------------------------------------------------------------"
BUILD_CMD="bash -eux $SRC/build.sh"
if [ -n "${BUILD_UID-}" ]; then
adduser -u $BUILD_UID --disabled-password --no-create-home --gecos '' builder
chown -R builder $SRC
chown builder $OUT
chown -R builder $SRC $OUT $WORK
su -c "$BUILD_CMD" builder
else
$BUILD_CMD