1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 16:06:14 +00:00

Skip downloading of packages if folder already exists (#432)

* Skip downloading of packages if folder already exists

The base image is using onbuild instructions to reduce code duplication (in regards to fetching Kopano packages). Sadly the unbuild instructions are not only executed on the directly following container image, but in every image that is using the images from this project as a base.

Fixes https://github.com/zokradonh/kopano-docker/issues/430
This commit is contained in:
Felix Bartels 2020-08-14 10:40:59 +02:00 committed by GitHub
parent f48b0e4374
commit e4c682f43d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,11 @@ function dl_and_package_community {
channel=${3:-community} channel=${3:-community}
branch=${4:-""} branch=${4:-""}
if [ -d "$component" ]; then
echo "Packages have been downloaded in a previous stage. Skipping..."
return
fi
# query community server by h5ai API # query community server by h5ai API
filename=$(h5ai_query "$component" "$distribution" "$channel" "$branch") filename=$(h5ai_query "$component" "$distribution" "$channel" "$branch")
filename2=$(basename "$filename") filename2=$(basename "$filename")