1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-22 13:52:56 +00:00

Make repo script more dynamic #232

* also add the ability to download the tar for supported releases
* use env variables for distribution, channel and branch
* add tests for new archive download for supported releases
This commit is contained in:
Felix Bartels
2019-10-14 11:19:07 +02:00
committed by GitHub
parent 9b5187d2e4
commit 37f3ee0720
5 changed files with 65 additions and 12 deletions
+7 -1
View File
@@ -1,4 +1,8 @@
#!/bin/bash
DEBUG=${DEBUG:-""}
tmpfile=${tmpfile:-""}
if ! command -v jq > /dev/null; then
echo "Please install jq in order to run this build script."
exit 1
@@ -15,6 +19,8 @@ source base/create-kopano-repo.sh
component=${1:-core}
distribution=${2:-Debian_9.0}
channel=${3:-community}
branch=${4:-""}
if [ -e ./.env ]; then
# this is a kind of ugly hack to be able to source the env file
@@ -62,7 +68,7 @@ kdav)
esac
# query community server by h5ai API
filename=$(h5ai_query "$component" "$distribution")
filename=$(h5ai_query "$component" "$distribution" "$channel" "$branch")
currentVersion=$(version_from_filename "$filename")