mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
add a condition in upgrade if version outdated before 0.9.8
This commit is contained in:
parent
75f636f0c9
commit
d1b7aa2c99
2 changed files with 11 additions and 0 deletions
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=
|
|
@ -25,6 +25,11 @@ 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"
|
||||
ynh_local_curl "/www/admin/index.php"
|
||||
fi
|
||||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue