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
This commit is contained in:
Clark Boylan
2014-09-19 15:42:55 -07:00
parent 804bf2e563
commit 7311057d1e

View File

@@ -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