fix(logrotate): ensure log rotate runs

Deleted the standard logrotate job from cron.daily and created
a new cron job to force run logrotate at `00:01`

MR !7
This commit is contained in:
2022-02-18 13:46:27 +09:30
parent 6625d72a48
commit 3120ecf2f5
2 changed files with 8 additions and 1 deletions

View File

@ -82,7 +82,8 @@ RUN apt update && DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends
# Cleanup, remove cron jobs not required
RUN rm -f /etc/cron.d/e2scrub_all \
&& rm -f /etc/cron.daily/apt-compat \
&& rm -f /etc/cron.daily/dpkg
&& rm -f /etc/cron.daily/dpkg \
&& rm -f /etc/cron.daily/logrotate
COPY include/ /