From 7311057d1e21e95cd976a4f074ea928c2f9911ac Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 19 Sep 2014 15:42:55 -0700 Subject: [PATCH] Handle @s in log file names by renaming them Rabbit log files are bad and use @ in the filename. Replace @ with _at_ to prevent the log server from 404ing on these files. Change-Id: I6daaf0475b1dab6bcd56c4d838f4600271d6a8be --- functions.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.sh b/functions.sh index cc94ab2b..875ba1c1 100644 --- a/functions.sh +++ b/functions.sh @@ -681,6 +681,9 @@ function cleanup_host { # rabbitmq if [ -f $BASE/logs/rabbitmq/ ]; then find $BASE/logs/rabbitmq -type f -exec mv '{}' '{}'.txt \; + for X in `find $BASE/logs/rabbitmq -type f` ; do + mv "$X" "${X/@/_at_}" + done fi # final memory usage and process list