1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/collabora_ynh.git synced 2024-09-03 18:16:25 +02:00

Merge pull request #59 from fflorent/testing

Die with message if upgrade is impossible (#58)
This commit is contained in:
Éric Gaspar 2022-02-20 18:12:30 +01:00 committed by GitHub
commit 3220d778e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"en": "LibreOffice-based online office suite with collaborative editing",
"fr": "Suite office en ligne et collaborative, basée sur LibreOffice"
},
"version": "21.11.0.6~ynh1",
"version": "21.11.2.2~ynh1",
"url": "https://collaboraoffice.com",
"upstream": {
"license": "MPL-2.0",

View file

@ -27,6 +27,11 @@ nextcloud_domain=$(ynh_app_setting_get --app="$app" --key=nextcloud_domain)
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=2
if ynh_compare_current_package_version --comparison le --version 6.4.10~ynh2
then
ynh_die --message="Upgrade from version 6.4.10 is not possible. You must uninstall and reinstall Collabora package manually"
fi
# If db_name doesn't exist, create it
if [ -z "$path_url" ]; then
path_url="/"