diff --git a/conf/0.9.8.src b/conf/0.9.8.src new file mode 100644 index 0000000..0be6dec --- /dev/null +++ b/conf/0.9.8.src @@ -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= \ No newline at end of file diff --git a/scripts/upgrade b/scripts/upgrade index 34f12fb..288da31 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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) #=================================================