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

Run forced upgrades.

As with YunoHost-Apps/pleroma_ynh#208 forced upgrades are not applied.
This commit is contained in:
orhtej2 2023-09-06 12:58:35 +02:00 committed by GitHub
parent 4680a641b8
commit 1144b3ba00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ read_manifest () {
abort_if_up_to_date () { abort_if_up_to_date () {
version=$(read_json "/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" 'version' 2> /dev/null || echo '20160501-7') version=$(read_json "/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" 'version' 2> /dev/null || echo '20160501-7')
last_version=$(read_manifest 'version') last_version=$(read_manifest 'version')
if [ "${version}" = "${last_version}" ]; then if [ "${version}" = "${last_version}" && [ "$YNH_APP_UPGRADE_TYPE" != "UPGRADE_FORCED" ] ]; then
ynh_print_info "Up-to-date, nothing to do" ynh_print_info "Up-to-date, nothing to do"
ynh_die "" 0 ynh_die "" 0
fi fi