diff --git a/manifest.json b/manifest.json index 535c4fb..ca61c03 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name": "LibreSurvey", "id": "libresurvey", "packaging_format": 1, - "version": "2.62.5-1", + "version": "2.62.5-2", "description": { "en": "LibreSurvey is used to create advanced poll.", "fr": "LibreSurvey est un outil de création et diffusion de sondage en ligne." diff --git a/scripts/_common.sh b/scripts/_common.sh index 94ba024..74184b7 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -305,8 +305,8 @@ ynh_abort_if_up_to_date () { local force_upgrade=${YNH_FORCE_UPGRADE:-0} local package_check=${PACKAGE_CHECK_EXEC:-0} - local version=$(ynh_read_manifest "/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" "version" || echo 1.0) - local last_version=$(ynh_read_manifest "../manifest.json" "version" || echo 1.0) + local version=$(ynh_read_json "/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" "version" || echo 1.0) + local last_version=$(ynh_read_manifest "version" || echo 1.0) if [ "$version" = "$last_version" ] then if [ "$force_upgrade" != "0" ]