mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
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
This commit is contained in:
parent
5d90971b58
commit
64e35815db
1 changed files with 0 additions and 10 deletions
10
helpers/apt
10
helpers/apt
|
@ -362,16 +362,6 @@ ynh_remove_app_dependencies() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_package_autopurge ${dep_app}-ynh-deps # Remove the fake package and its dependencies if they not still used.
|
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 "\<php[0-9.]+\>" | 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.
|
# Install packages from an extra repository properly.
|
||||||
|
|
Loading…
Add table
Reference in a new issue