mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Fix sources, again
This commit is contained in:
parent
00a55b76c6
commit
678c9e4aeb
3 changed files with 6 additions and 4 deletions
|
@ -46,12 +46,14 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
|
|||
[resources]
|
||||
[resources.sources.latest]
|
||||
prefetch = false
|
||||
url = "https://download.dotclear.org/latest/dotclear-2.27.1.zip"
|
||||
in_subdir = 2
|
||||
url = "https://download.dotclear.org/latest/dotclear-2.27.1.tar.gz"
|
||||
sha256 = "15d5d139dffd5e53f7c2301e01f085edcdbed7a89d9e829864a81b7b99cba5e8"
|
||||
|
||||
[resources.sources.attic]
|
||||
prefetch = false
|
||||
url = "https://download.dotclear.org/attic/dotclear-2.27.1.zip"
|
||||
in_subdir = 2
|
||||
url = "https://download.dotclear.org/attic/dotclear-2.27.1.tar.gz"
|
||||
sha256 = "15d5d139dffd5e53f7c2301e01f085edcdbed7a89d9e829864a81b7b99cba5e8"
|
||||
|
||||
[resources.system_user]
|
||||
|
|
|
@ -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' -r)
|
||||
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||
ynh_setup_source --dest_dir="$install_dir" --source_id="attic"
|
||||
else
|
||||
|
|
|
@ -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' -r)
|
||||
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||
ynh_setup_source --dest_dir="$install_dir" --source_id="attic"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue