From 9d914c0cf68782f140c7483c20dc298f0e06abbc Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 15 Aug 2023 18:21:57 +0200 Subject: [PATCH] Fix manifest read for sources --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index b9a5f84..a83cdc8 100755 --- a/scripts/install +++ b/scripts/install @@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers 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 -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 ynh_setup_source --dest_dir="$install_dir" --source_id="attic" else diff --git a/scripts/upgrade b/scripts/upgrade index 6486b5d..b6717a1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -65,7 +65,7 @@ then # 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 - 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 ynh_setup_source --dest_dir="$install_dir" --source_id="attic" else