The original directory loop in here was loosening the default debian permissions too much. This had the knock-on effect
of breaking the logrotate.d config so that it needed a "su mysql" line adding to make it function and stop generating warnings
on rotation. The loop has been broken out into individual line items which mirror the default debian permissions.