Make the cron.d directory

This commit is contained in:
2019-12-04 05:38:59 +00:00
committed by Gitea
parent b18fd04caf
commit 8081205064

View File

@@ -16,6 +16,7 @@ RUN apk -v --update add \
COPY ./update-dns.sh /usr/local/bin/ COPY ./update-dns.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/update-dns.sh RUN chmod +x /usr/local/bin/update-dns.sh
RUN mkdir -p /etc/cron.d/
RUN echo -e "*/10 * * * * update-dns.sh > /proc/1/fd/1 2>/proc/1/fd/2\n" > /etc/cron.d/dns-cron RUN echo -e "*/10 * * * * update-dns.sh > /proc/1/fd/1 2>/proc/1/fd/2\n" > /etc/cron.d/dns-cron
RUN crontab /etc/cron.d/dns-cron RUN crontab /etc/cron.d/dns-cron