mirror of
https://github.com/octoleo/docker-joomla.git
synced 2024-10-31 18:52:28 +00:00
More generic jq filter
This commit is contained in:
parent
6e8d6951cc
commit
24f748ce89
@ -11,7 +11,7 @@ phpVersions=( "${phpVersions[@]%/}" )
|
|||||||
|
|
||||||
current="$(curl -fsSL 'https://downloads.joomla.org/api/v1/latest/cms' | jq -r '.branches[3].version')"
|
current="$(curl -fsSL 'https://downloads.joomla.org/api/v1/latest/cms' | jq -r '.branches[3].version')"
|
||||||
urlVersion=$(echo $current | sed -e 's/\./-/g')
|
urlVersion=$(echo $current | sed -e 's/\./-/g')
|
||||||
sha1="$(curl -fsSL "https://downloads.joomla.org/api/v1/signatures/cms/$urlVersion" | jq -r '.files[9].sha1')"
|
sha1="$(curl -fsSL "https://downloads.joomla.org/api/v1/signatures/cms/$urlVersion" | jq -r --arg file "Joomla_${current}-Stable-Full_Package.tar.bz2" '.[] | .[] | select(.filename == $file).sha1')"
|
||||||
|
|
||||||
declare -A variantExtras=(
|
declare -A variantExtras=(
|
||||||
[apache]='\n# Enable Apache Rewrite Module\nRUN a2enmod rewrite\n'
|
[apache]='\n# Enable Apache Rewrite Module\nRUN a2enmod rewrite\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user