From 28021c466a3756ab938bc37a127323bdc197b746 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 30 Mar 2023 12:31:34 +0200 Subject: [PATCH] chore(bin/emqx): do not use -r option in rm command when deleting .siz --- bin/emqx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/emqx b/bin/emqx index c0601ec85..0bfe94d4c 100755 --- a/bin/emqx +++ b/bin/emqx @@ -766,7 +766,7 @@ generate_config() { local node_name="$2" ## Delete the *.siz files first or it can't start after ## changing the config 'log.rotation.size' - rm -rf "${RUNNER_LOG_DIR}"/*.siz + rm -f "${RUNNER_LOG_DIR}"/*.siz ## timestamp for each generation local NOW_TIME