Commit 7215f7a6 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

remove check for packages dir

Packages dir is a docker volume and the mount point will be
automatically created. Permissions will be correct from entrypoint.
parent 8dd4a740
......@@ -67,16 +67,10 @@ else
esac
fi
## check $DABUILD_PACKAGES is a writable directory
## set packages directory based on aports location if not set
## FIXME this will not append release dir if set manually
ABUILD_PACKAGES=${DABUILD_PACKAGES:-${PWD%/aports/*}/packages/${ALPINE_RELEASE}}
mkdir -p $ABUILD_PACKAGES
if [ ! \( -d "$ABUILD_PACKAGES" -a -w "$ABUILD_PACKAGES" \) ]; then
die "Error: invalid or unwritable packages directory specified!" \
"ABUILD_PACKAGES = '$ABUILD_PACKAGES'" \
"DABUILD_PACKAGES = '$DABUILD_PACKAGES'"
fi
## setup volumes; use named volumes as cache if desired
ABUILD_VOLUMES="-v ${PWD%/aports/*}/aports:/home/builder/aports \
-v ${ABUILD_PACKAGES}:/home/builder/packages"
......
Markdown is supported
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