From 2a5f0bee8058ba0ef441d36b9bfec434a13fe735 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Fri, 11 May 2018 19:07:23 +0200 Subject: [PATCH] Fix nginx' domain file cleanup on removal --- scripts/remove | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/remove b/scripts/remove index abe5c16..f40c9ec 100644 --- a/scripts/remove +++ b/scripts/remove @@ -68,6 +68,10 @@ ynh_secure_remove "$final_path" # REMOVE NGINX CONFIGURATION #================================================= +# remove domain specific configuration +tail -n +11 "/etc/nginx/conf.d/$domain.conf" > "/etc/nginx/conf.d/$domain.conf.temp" +mv "/etc/nginx/conf.d/$domain.conf.temp" "/etc/nginx/conf.d/$domain.conf" + # Remove the dedicated nginx config ynh_remove_nginx_config