From eb5de62e467aa96121df27294f5b2448e07c3e0d Mon Sep 17 00:00:00 2001 From: hxy7yx <1595670487@qq.com> Date: Wed, 28 Jun 2023 09:39:30 +0800 Subject: [PATCH] exclude license when downloading logs --- plugins/restful/log_handle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/restful/log_handle.c b/plugins/restful/log_handle.c index c0438a0d..34b02ba1 100644 --- a/plugins/restful/log_handle.c +++ b/plugins/restful/log_handle.c @@ -63,7 +63,8 @@ void handle_logs_files(nng_aio *aio) rv = system("rm -rf /tmp/neuron_debug.tar.gz"); nlog_warn("remove old neuron_debug.tar.gz, rv: %d", rv); /* tar the neuron directory */ - rv = system("tar -zcvf /tmp/neuron_debug.tar.gz ../neuron"); + rv = system("tar -zcvf /tmp/neuron_debug.tar.gz " + "--exclude='persistence/neuron.lic' ../neuron"); if (rv == -1) { nlog_error("failed to create neuron_debug.tar.gz, rv: %d", rv); NEU_JSON_RESPONSE_ERROR(NEU_ERR_COMMAND_EXECUTION_FAILED, {