From df99bf020e3eacb7687998b0ae1278473f46d4de Mon Sep 17 00:00:00 2001 From: magikcypress Date: Mon, 3 Apr 2017 14:38:59 +0200 Subject: [PATCH] [fix] Use SECURE_REMOVE fonction --- scripts/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index e0a6f80..16dbb00 100644 --- a/scripts/remove +++ b/scripts/remove @@ -13,7 +13,7 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get "$app" domain) # Delete app directory and configurations -sudo rm -rf "/var/www/${app}" +SECURE_REMOVE '/var/www/$app' # Delete directory application sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf" sudo rm -f "/etc/php5/fpm/conf.d/20-${app}.ini" [[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"