1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

Fix detection of upgrade to >=1.1

This commit is contained in:
tituspijean 2021-11-12 00:19:47 +01:00
parent 123ad37ee3
commit 3517741eb3
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -184,7 +184,8 @@ then
# Install Composer and Flarum # Install Composer and Flarum
ynh_exec_warn_less ynh_install_composer --phpversion=$phpversion --workdir=$final_path ynh_exec_warn_less ynh_install_composer --phpversion=$phpversion --workdir=$final_path
if [ ynh_compare_current_package_version --comparison lt --version 1.1.0~ynh1 ]; then if ynh_compare_current_package_version --comparison lt --version 1.1.0~ynh1
then
# Starting 1.0 (implemented for 1.1 in the package), version requirement is "*" for extensions # Starting 1.0 (implemented for 1.1 in the package), version requirement is "*" for extensions
# ... except for flarum/core, but that's handled in the next block. # ... except for flarum/core, but that's handled in the next block.
jq '.require | .[] = "*"' $final_path/composer.json jq '.require | .[] = "*"' $final_path/composer.json