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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user