mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Fix manifest read for sources
This commit is contained in:
parent
9ba5395970
commit
9d914c0cf6
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers
|
||||||
ynh_script_progression --message="Setting up source files..." --weight=4
|
ynh_script_progression --message="Setting up source files..." --weight=4
|
||||||
|
|
||||||
# In case of a new version, the url change from http://download.dotclear.org/latest/dotclear-X.X.X.tar.gz to http://download.dotclear.org/attic/dotclear-X.X.X.tar.gz
|
# In case of a new version, the url change from http://download.dotclear.org/latest/dotclear-X.X.X.tar.gz to http://download.dotclear.org/attic/dotclear-X.X.X.tar.gz
|
||||||
src_url=$(cat $YNH_APP_BASEDIR/manifest.toml | toml_to_json | jq ".resources.sources[latest].url")
|
src_url=$(cat $YNH_APP_BASEDIR/manifest.toml | toml_to_json | jq ".resources.sources.latest.url")
|
||||||
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||||
ynh_setup_source --dest_dir="$install_dir" --source_id="attic"
|
ynh_setup_source --dest_dir="$install_dir" --source_id="attic"
|
||||||
else
|
else
|
||||||
|
|
|
@ -65,7 +65,7 @@ then
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
# In case of a new version, the url change from http://download.dotclear.org/latest/dotclear-X.X.X.tar.gz to http://download.dotclear.org/attic/dotclear-X.X.X.tar.gz
|
# In case of a new version, the url change from http://download.dotclear.org/latest/dotclear-X.X.X.tar.gz to http://download.dotclear.org/attic/dotclear-X.X.X.tar.gz
|
||||||
src_url=$(cat $YNH_APP_BASEDIR/manifest.toml | toml_to_json | jq ".resources.sources[latest].url")
|
src_url=$(cat $YNH_APP_BASEDIR/manifest.toml | toml_to_json | jq ".resources.sources.latest.url")
|
||||||
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||||
ynh_setup_source --dest_dir="$install_dir" --source_id="attic"
|
ynh_setup_source --dest_dir="$install_dir" --source_id="attic"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue