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:
parent
85e26f5dcd
commit
51ce216874
1 changed files with 4 additions and 4 deletions
|
@ -61,6 +61,10 @@ ynh_remove_nodejs
|
||||||
# REMOVE APP MAIN DIR
|
# REMOVE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
# remove tmp files
|
||||||
|
sudo -u $app rm -rf /tmp/*
|
||||||
|
ynh_secure_remove "/var/tmp/*"
|
||||||
|
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
ynh_secure_remove "$final_path"
|
ynh_secure_remove "$final_path"
|
||||||
|
|
||||||
|
@ -113,10 +117,6 @@ fi
|
||||||
# Remove the log files
|
# Remove the log files
|
||||||
ynh_secure_remove "/var/log/$app/"
|
ynh_secure_remove "/var/log/$app/"
|
||||||
|
|
||||||
# remove tmp files
|
|
||||||
sudo -u $app rm -rf /tmp/*
|
|
||||||
ynh_secure_remove "/var/tmp/*"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue