mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-12-22 09:35:06 +01:00
Remove log only if purge are enabled
This commit is contained in:
parent
b0e95f93c2
commit
a689129d2a
@ -26,8 +26,10 @@ ynh_remove_logrotate
|
||||
|
||||
ynh_remove_fail2ban_config
|
||||
|
||||
ynh_script_progression --message='Removing logs...'
|
||||
ynh_secure_remove --file="/var/log/$app"
|
||||
if [ "$YNH_APP_PURGE" -eq 1 ]; then
|
||||
ynh_script_progression --message="Removing logs..."
|
||||
ynh_secure_remove --file=/var/log/"$app"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
Loading…
Reference in New Issue
Block a user