mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
commit
470b81cf78
5 changed files with 17 additions and 4 deletions
|
@ -9,7 +9,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to
|
||||||
## Overview
|
## Overview
|
||||||
Dotclear is an open-source web publishing software.
|
Dotclear is an open-source web publishing software.
|
||||||
|
|
||||||
**Shipped version:** 2.15
|
**Shipped version:** 2.15.1
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=http://download.dotclear.org/latest/dotclear-2.15.tar.gz
|
SOURCE_URL=http://download.dotclear.org/latest/dotclear-2.15.1.tar.gz
|
||||||
SOURCE_SUM=f50762992a21ccb2a0c0c5ed2be11298
|
SOURCE_SUM=6721afc77c7ab4a3278b2fdb90561fc8
|
||||||
SOURCE_SUM_PRG=md5sum
|
SOURCE_SUM_PRG=md5sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Blog publishing application",
|
"en": "Blog publishing application",
|
||||||
"fr": "Moteur de blog"
|
"fr": "Moteur de blog"
|
||||||
},
|
},
|
||||||
"version": "2.15~ynh1",
|
"version": "2.15.1~ynh1",
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"url": "https://dotclear.org/",
|
"url": "https://dotclear.org/",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -69,6 +69,13 @@ db_pwd=$(ynh_app_setting_get $app mysqlpwd)
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_app_setting_set $app final_path $final_path
|
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
|
ynh_setup_source $final_path
|
||||||
|
|
||||||
mv $final_path/dotclear/* $final_path/
|
mv $final_path/dotclear/* $final_path/
|
||||||
|
|
|
@ -88,6 +88,12 @@ ynh_backup_if_checksum_is_different "$php_config"
|
||||||
ynh_secure_remove "$final_path"
|
ynh_secure_remove "$final_path"
|
||||||
|
|
||||||
# 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
|
||||||
|
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"
|
ynh_setup_source "$final_path"
|
||||||
|
|
||||||
mv $final_path/dotclear/* $final_path/
|
mv $final_path/dotclear/* $final_path/
|
||||||
|
|
Loading…
Add table
Reference in a new issue