1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

Merge pull request #12 from YunoHost-Apps/testing

Testing
This commit is contained in:
Kayou 2019-09-08 01:50:11 +02:00 committed by GitHub
commit 470b81cf78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 4 deletions

View file

@ -9,7 +9,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to
## Overview
Dotclear is an open-source web publishing software.
**Shipped version:** 2.15
**Shipped version:** 2.15.1
## Screenshots

View file

@ -1,5 +1,5 @@
SOURCE_URL=http://download.dotclear.org/latest/dotclear-2.15.tar.gz
SOURCE_SUM=f50762992a21ccb2a0c0c5ed2be11298
SOURCE_URL=http://download.dotclear.org/latest/dotclear-2.15.1.tar.gz
SOURCE_SUM=6721afc77c7ab4a3278b2fdb90561fc8
SOURCE_SUM_PRG=md5sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Blog publishing application",
"fr": "Moteur de blog"
},
"version": "2.15~ynh1",
"version": "2.15.1~ynh1",
"license": "GPL-2.0-or-later",
"url": "https://dotclear.org/",
"maintainer": {

View file

@ -69,6 +69,13 @@ db_pwd=$(ynh_app_setting_get $app mysqlpwd)
#=================================================
ynh_app_setting_set $app final_path $final_path
# 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=$(grep 'SOURCE_URL=' "../conf/app.src" | cut -d= -f2-)
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
ynh_replace_string "latest" "attic" ../conf/app.src
fi
ynh_setup_source $final_path
mv $final_path/dotclear/* $final_path/

View file

@ -88,6 +88,12 @@ ynh_backup_if_checksum_is_different "$php_config"
ynh_secure_remove "$final_path"
# 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=$(grep 'SOURCE_URL=' "../conf/app.src" | cut -d= -f2-)
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
ynh_replace_string "latest" "attic" ../conf/app.src
fi
ynh_setup_source "$final_path"
mv $final_path/dotclear/* $final_path/