Remove log only if purge are enabled

This commit is contained in:
Josué Tille 2024-04-21 12:03:38 +02:00
parent b0e95f93c2
commit a689129d2a
No known key found for this signature in database
GPG Key ID: 5F259226AD51F2F5

View File

@ -26,8 +26,10 @@ ynh_remove_logrotate
ynh_remove_fail2ban_config ynh_remove_fail2ban_config
ynh_script_progression --message='Removing logs...' if [ "$YNH_APP_PURGE" -eq 1 ]; then
ynh_secure_remove --file="/var/log/$app" ynh_script_progression --message="Removing logs..."
ynh_secure_remove --file=/var/log/"$app"
fi
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT