Auto-update admin doc link

This commit is contained in:
Florent 2023-01-13 12:40:09 +01:00
parent ab6d16e29b
commit bdd7e028bb

View file

@ -105,7 +105,8 @@ done
#=================================================
# Replace new version in manifest
echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json)" > manifest.json
admindoc="https://www.elastic.co/guide/en/elasticsearch/reference/$(echo $version | grep -Po "^\d+\.\d+")/elasticsearch-intro.html"
echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\" | .upstream.admindoc = \"$admindoc\"" manifest.json)" > manifest.json
# No need to update the README, yunohost-bot takes care of it