mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
Fix some warnings and issues with file deletions
This commit is contained in:
parent
3805b3cbeb
commit
16b705afde
1 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ systemctl disable ynh-hotspot
|
||||||
yunohost service remove ynh-hotspot
|
yunohost service remove ynh-hotspot
|
||||||
ynh_secure_remove /etc/systemd/system/ynh-hotspot.service
|
ynh_secure_remove /etc/systemd/system/ynh-hotspot.service
|
||||||
ynh_secure_remove /usr/local/bin/ynh-hotspot
|
ynh_secure_remove /usr/local/bin/ynh-hotspot
|
||||||
for FILE in $(ls /tmp/.ynh-hotspot-*)
|
for FILE in $(ls /tmp/.ynh-hotspot-* 2>/dev/null)
|
||||||
do
|
do
|
||||||
ynh_secure_remove "$FILE"
|
ynh_secure_remove "$FILE"
|
||||||
done
|
done
|
||||||
|
@ -51,10 +51,10 @@ yunohost firewall disallow --ipv6 UDP 547
|
||||||
yunohost firewall disallow UDP 67
|
yunohost firewall disallow UDP 67
|
||||||
|
|
||||||
# Remove confs
|
# Remove confs
|
||||||
ynh_secure_remove /etc/dnsmasq.dhcpd/
|
ynh_secure_remove /etc/dnsmasq.dhcpd
|
||||||
ynh_secure_remove /etc/nginx/conf.d/${domain}.d/wifiadmin.conf
|
ynh_secure_remove /etc/nginx/conf.d/${domain}.d/wifiadmin.conf
|
||||||
ynh_secure_remove /etc/php5/fpm/pool.d/wifiadmin.conf
|
ynh_secure_remove /etc/php5/fpm/pool.d/wifiadmin.conf
|
||||||
for FILE in $(ls /etc/hostapd/hostapd.conf{.tpl?,})
|
for FILE in $(ls /etc/hostapd/hostapd.conf{.tpl?,} 2>/dev/null)
|
||||||
do
|
do
|
||||||
ynh_secure_remove "$FILE"
|
ynh_secure_remove "$FILE"
|
||||||
done
|
done
|
||||||
|
@ -79,7 +79,7 @@ systemctl restart php5-fpm
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|
||||||
# Remove sources
|
# Remove sources
|
||||||
ynh_secure_remove /var/www/wifiadmin/
|
ynh_secure_remove /var/www/wifiadmin
|
||||||
|
|
||||||
# Remove user
|
# Remove user
|
||||||
ynh_system_user_delete ${app}
|
ynh_system_user_delete ${app}
|
||||||
|
|
Loading…
Add table
Reference in a new issue