mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
Merge branch 'update_condition_old_version' into testing
add an upgrade condition for old versions before 0.9.8
This commit is contained in:
commit
e58bd94654
7 changed files with 16 additions and 5 deletions
|
@ -11,7 +11,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
|||
## Overview
|
||||
Garradin is a free association managing software.
|
||||
|
||||
**Shipped version:** 1.0.5
|
||||
**Shipped version:** 1.0.6
|
||||
|
||||
## Screenshots
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install
|
|||
## Vue d'ensemble
|
||||
Garradin est un logiciel libre de gestion associative. il permet de gérer des membres.
|
||||
|
||||
**Version incluse :** 1.0.5
|
||||
**Version incluse :** 1.0.6
|
||||
|
||||
## Captures d'écran
|
||||
|
||||
|
|
6
conf/0.9.8.src
Normal file
6
conf/0.9.8.src
Normal file
|
@ -0,0 +1,6 @@
|
|||
SOURCE_URL=https://fossil.kd2.org/garradin/uv/garradin-0.9.8.1.tar.bz2
|
||||
SOURCE_SUM=7cc64b51c9721c2dd7ee510f245bcfc4693ee07f74581ad74003906eb4716ef1
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.bz2
|
||||
SOURCE_IN_SUBDIR=true
|
||||
SOURCE_FILENAME=
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://fossil.kd2.org/garradin/uv/garradin-1.0.5.tar.bz2
|
||||
SOURCE_SUM=a9c6479be1f388c2655ee7de671a2dc99021cb29f0fe03a195c826788e18ac30
|
||||
SOURCE_URL=https://fossil.kd2.org/garradin/uv/garradin-1.0.6.tar.bz2
|
||||
SOURCE_SUM=dcb2b5481fdd9ca2544f1e1f81fff1067d6eb7189e0f8547c98f6413040cf65b
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.bz2
|
||||
SOURCE_IN_SUBDIR=true
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Software to manage association",
|
||||
"fr": "Logiciel libre de gestion d'association"
|
||||
},
|
||||
"version": "1.0.5~ynh1",
|
||||
"version": "1.0.6~ynh1",
|
||||
"url": "http://garradin.eu/a-propos/",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"maintainer": {
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
ynh_abort_if_errors
|
||||
|
||||
#=================================================
|
||||
# RETRIEVE ARGUMENTS
|
||||
|
|
|
@ -25,6 +25,10 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|||
# CHECK VERSION
|
||||
#=================================================
|
||||
|
||||
if ynh_compare_current_package_version --comparison lt --version 0.9.8.1~ynh1; then
|
||||
ynh_setup_source --dest_dir="$final_path" --source_id="0.9.8"
|
||||
fi
|
||||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue