Skip to content

Commit e007636

Browse files
dysendenis-dysen
authored andcommitted
re-did crontabbing to allow for flexible timing
1 parent 06371cc commit e007636

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

deploy/alpine-mirror/Containerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ FROM docker.io/library/alpine:3.20
22

33
RUN apk add rsync
44

5-
# COPY ./synchroniser /app
6-
# COPY ./synchroniser/crontab /etc/cron.d/crontab
5+
COPY ./synchroniser /app
6+
RUN cat /app/crontab >> /etc/crontabs/root
77

8-
# RUN chmod +x /app/mirror.sh
9-
COPY ./synchroniser/mirror.sh /etc/periodic/15min
10-
RUN chmod +x /etc/periodic/15min/mirror.sh
8+
RUN chmod +x /app/mirror.sh
119

1210
CMD ["crond", "-f"]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# crontab
2-
*/5 * * * * root /app/mirror.sh
1+
# every 5 days
2+
* * */5 * * sh /app/mirror.sh

0 commit comments

Comments
 (0)