1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

remove tmp before removing user folder in /var/www/$app

This commit is contained in:
Yalh 2019-01-29 23:31:51 +01:00
parent 85e26f5dcd
commit 51ce216874

View file

@ -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
#=================================================