From 16b705afde210215c99e328f3417302dad89c63e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 18 Feb 2019 12:03:24 +0100 Subject: [PATCH] Fix some warnings and issues with file deletions --- scripts/remove | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/remove b/scripts/remove index 19e6bcd..a57cde7 100644 --- a/scripts/remove +++ b/scripts/remove @@ -41,7 +41,7 @@ systemctl disable ynh-hotspot yunohost service remove ynh-hotspot ynh_secure_remove /etc/systemd/system/ynh-hotspot.service 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 ynh_secure_remove "$FILE" done @@ -51,10 +51,10 @@ yunohost firewall disallow --ipv6 UDP 547 yunohost firewall disallow UDP 67 # 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/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 ynh_secure_remove "$FILE" done @@ -79,7 +79,7 @@ systemctl restart php5-fpm systemctl reload nginx # Remove sources -ynh_secure_remove /var/www/wifiadmin/ +ynh_secure_remove /var/www/wifiadmin # Remove user ynh_system_user_delete ${app}