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:
parent
f48b0e4374
commit
e4c682f43d
@ -35,6 +35,11 @@ function dl_and_package_community {
|
||||
channel=${3:-community}
|
||||
branch=${4:-""}
|
||||
|
||||
if [ -d "$component" ]; then
|
||||
echo "Packages have been downloaded in a previous stage. Skipping..."
|
||||
return
|
||||
fi
|
||||
|
||||
# query community server by h5ai API
|
||||
filename=$(h5ai_query "$component" "$distribution" "$channel" "$branch")
|
||||
filename2=$(basename "$filename")
|
||||
|
Loading…
x
Reference in New Issue
Block a user