Commit 4b844ae4 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

dabuild: create mount directories with correct permissions

docker creates mount points as root when source does not exists instead
create them first with UID 1000 which should be the UID of the builder
user inside the container.
parent 53db2c1b
......@@ -58,10 +58,13 @@ else
## check $DABUILD_PACKAGES is a writable directory
# docker will create mount points as root if not available so create them first
# use uid 1000 as this is the uid of the builder user in the container
install -d -o 1000 -g 1000 "$ABUILD_PACKAGES" "$HOME"/.abuild
## check $DABUILD_PACKAGES is a writable directory
if [ ! \( -d "$ABUILD_PACKAGES" -a -w "$ABUILD_PACKAGES" \) ]; then
die "Error: invalid or unwritable packages directory specified!" \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment