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:
parent
86e543231a
commit
baa678b6d5
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue