1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

remove: using ynh_remove_app_dependencies

This commit is contained in:
Kay0u 2019-02-20 19:48:18 +01:00
parent 86e543231a
commit baa678b6d5

View file

@ -76,18 +76,15 @@ done
ynh_secure_remove /etc/sudoers.d/hotspot_ynh ynh_secure_remove /etc/sudoers.d/hotspot_ynh
# Remove packages # Remove packages
if [[ $firmware_nonfree == yes ]]; then if [[ $firmware_nonfree -eq 0 ]]; then
packages=$nonfree_packages
else
packages=$free_packages
# Remove free firmwares # Remove free firmwares
if ! dpkg -l firmware-atheros &> /dev/null; then if ! dpkg -l firmware-atheros &> /dev/null; then
ynh_secure_remove /lib/firmware/htc_7010.fw ynh_secure_remove /lib/firmware/htc_7010.fw
ynh_secure_remove /lib/firmware/htc_9271.fw ynh_secure_remove /lib/firmware/htc_9271.fw
fi fi
fi fi
apt-get --assume-yes --force-yes remove ${packages}
ynh_remove_app_dependencies
# Restart services # Restart services
systemctl restart php5-fpm systemctl restart php5-fpm