From 51ce216874dd2696180a556407a039f5cfa9858a Mon Sep 17 00:00:00 2001 From: Yalh Date: Tue, 29 Jan 2019 23:31:51 +0100 Subject: [PATCH] remove tmp before removing user folder in /var/www/$app --- scripts/remove | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/remove b/scripts/remove index 71aa8ee..c64c458 100644 --- a/scripts/remove +++ b/scripts/remove @@ -61,6 +61,10 @@ ynh_remove_nodejs # REMOVE APP MAIN DIR #================================================= +# remove tmp files +sudo -u $app rm -rf /tmp/* +ynh_secure_remove "/var/tmp/*" + # Remove the app directory securely ynh_secure_remove "$final_path" @@ -113,10 +117,6 @@ fi # Remove the log files ynh_secure_remove "/var/log/$app/" -# remove tmp files -sudo -u $app rm -rf /tmp/* -ynh_secure_remove "/var/tmp/*" - #================================================= # GENERIC FINALIZATION #=================================================