1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

scripts: warn about lengthy migrations when upgrading to 5.38.0

The release notes of the 5.38.0 version mention two lengthy database
migrations. Make sure users are told what is going on, so that they
don't think the upgrade failed.
This commit is contained in:
Pierre de La Morinerie 2021-08-17 15:46:13 -05:00
parent a0629a05fa
commit f8589544d5

View file

@ -194,10 +194,10 @@ yunohost service add $app --description="Collaboration platform built for develo
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2
# A lengthy database migration runs when upgrading from a version < 5.35.
if dpkg --compare-versions "$previous_upstream_version" lt "5.35.0"
# A lengthy database migration runs when upgrading from a version < 5.38.
if dpkg --compare-versions "$previous_upstream_version" lt "5.38.0"
then
ynh_print_warn --message="A database migration will now run. This may take a while..."
ynh_print_warn --message="Lengthy database migrations will now run. This may take a while..."
fi
# Start a systemd service