#!/bin/bash

source /var/vcap/jobs/rabbitmq-server/lib/delete_old_files.bash

main() {
  delete_all_legacy_http_log_files
  delete_http_log_files
}

delete_all_legacy_http_log_files() {
  rm -f /var/vcap/sys/log/rabbitmq-server/access.log*
}

delete_http_log_files() {
  delete_old_files /var/vcap/sys/log/rabbitmq-server/management-ui
}

main

#!/bin/bash

source /var/vcap/jobs/rabbitmq-server/lib/delete_old_files.bash
delete_old_files /var/vcap/sys/log/rabbitmq-server/management-ui

Revert "Delete all old access logs"
Revert "Delete all old access logs"

This code is not needed because the logs are stored on ephemeral disk

[#131160871]

This reverts commit 32521decf8f853f733c957cd57961716ec26b367.
