mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
Fix upgrade
This commit is contained in:
parent
bedcd90f9c
commit
1d839ffc40
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,7 @@ ynh_script_progression --message="Upgrading source files..." --weight=60
|
|||
|
||||
# Sort --version-sort cdécembrean handle underscore in versions numbers
|
||||
mapfile -t main_versions < <(
|
||||
ynh_read_manifest --key="resources.sources | keys[]" | grep "main_" | sort --version-sort
|
||||
ynh_read_manifest --manifest_key="resources.sources | keys[]" | grep "main_" | sort --version-sort
|
||||
)
|
||||
current_version="$YNH_APP_CURRENT_VERSION"
|
||||
for version in "${main_versions[@]}"; do
|
||||
|
@ -71,6 +71,7 @@ done
|
|||
|
||||
# Final upgrade to the final version
|
||||
new_version=$(ynh_app_upstream_version)
|
||||
source_id="main"
|
||||
ynh_print_info --message="Upgrading app from $current_version to $new_version"
|
||||
upgrade_dolibarr
|
||||
|
||||
|
|
Loading…
Reference in a new issue