From baa678b6d54cfe2de4cfdcaa5f565676a8d53740 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 20 Feb 2019 19:48:18 +0100 Subject: [PATCH] remove: using ynh_remove_app_dependencies --- scripts/remove | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/remove b/scripts/remove index 3634cf1..dcddddd 100644 --- a/scripts/remove +++ b/scripts/remove @@ -76,18 +76,15 @@ done ynh_secure_remove /etc/sudoers.d/hotspot_ynh # Remove packages -if [[ $firmware_nonfree == yes ]]; then - packages=$nonfree_packages -else - packages=$free_packages - +if [[ $firmware_nonfree -eq 0 ]]; then # Remove free firmwares if ! dpkg -l firmware-atheros &> /dev/null; then ynh_secure_remove /lib/firmware/htc_7010.fw ynh_secure_remove /lib/firmware/htc_9271.fw fi fi -apt-get --assume-yes --force-yes remove ${packages} + +ynh_remove_app_dependencies # Restart services systemctl restart php5-fpm