From 64e35815dbce0513f0070846351cd67600d50c04 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 13 Aug 2022 03:57:34 +0200 Subject: [PATCH] apt helpers: simplify ynh_remove_app_dependencies, we don't need to care about removing php-fpm services from yunohost, because 'yunohost service' now dynamically check what relevant phpX.Y-fpm service exist on the system --- helpers/apt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/helpers/apt b/helpers/apt index 5ddcba381..02c3a0ab7 100644 --- a/helpers/apt +++ b/helpers/apt @@ -362,16 +362,6 @@ ynh_remove_app_dependencies() { fi ynh_package_autopurge ${dep_app}-ynh-deps # Remove the fake package and its dependencies if they not still used. - - # Check if this app used a specific php version ... in which case we check - # if the corresponding php-fpm is still there. Otherwise, we remove the - # service from yunohost as well - - local specific_php_version=$(echo $current_dependencies | tr '-' ' ' | grep -o -E "\" | sed 's/php//g' | sort | uniq) - [[ "$specific_php_version" != "$YNH_DEFAULT_PHP_VERSION" ]] || specific_php_version="" - if [[ -n "$specific_php_version" ]] && ! ynh_package_is_installed --package="php${specific_php_version}-fpm"; then - yunohost service remove php${specific_php_version}-fpm - fi } # Install packages from an extra repository properly.