From aac912e4c9d42d8834fb6737e114a84b2f35a413 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Wed, 8 Nov 2023 17:09:44 +0100 Subject: [PATCH] Set nullglob for combining HTTP log files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This can cause files named '*' in places where you wouldn’t expect it otherwise. Signed-off-by: Nils Philippsen --- roles/web-data-analysis/files/combineHttpLogs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/web-data-analysis/files/combineHttpLogs.sh b/roles/web-data-analysis/files/combineHttpLogs.sh index d2b4e47884..caa52475c1 100644 --- a/roles/web-data-analysis/files/combineHttpLogs.sh +++ b/roles/web-data-analysis/files/combineHttpLogs.sh @@ -19,6 +19,9 @@ # along with Fedora Project Infrastructure Ansible Repository. If # not, see . +# Don’t create files named '*'. +shopt -s nullglob + export MSGTOPIC_PREFIX=logging.stats export MSGBODY_PRESET="loghost=$(hostname) run_id=$(uuidgen -r)" simple_message_to_bus combinehttplogs.start