Commit f043b311 authored by Erick Hitter's avatar Erick Hitter

Concatenate log, don't overwrite

parent d442a8d8
Pipeline #1833 passed with stages
in 2 minutes and 41 seconds
......@@ -17,9 +17,8 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN touch /var/log/s3-purge
COPY s3-purge.sh /usr/local/bin/s3-purge
COPY crontab /etc/cron.d/s3-purge
CMD ["tail", "-f", "/var/log/s3-purge"]
RUN touch /var/log/s3-purge
CMD ["tail", "-F", "/var/log/s3-purge"]
20 1 * * * root s3-purge > /var/log/s3-purge 2>/dev/null
20 1 * * * root s3-purge >> /var/log/s3-purge 2>/dev/null
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment