From 0c61595de71d34594835de9feaf45c5397287c2c Mon Sep 17 00:00:00 2001 From: Yalh Date: Wed, 30 Jan 2019 03:33:34 +0100 Subject: [PATCH] Clean tmp files during remove --- scripts/remove | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/remove b/scripts/remove index c3ff164..39d1815 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"