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.