diff --git a/scripts/remove b/scripts/remove index 1d0608e..2ca268e 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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