fix: rename KOPIA_CRON_TIMES to KOPIA_CRON_SCHEDULE
This commit is contained in:
parent
a31e7fca38
commit
550e7857a6
2 changed files with 4 additions and 4 deletions
|
@ -3,8 +3,8 @@ FROM kopia/kopia
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update && apt-get install -y cron && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y cron && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG KOPIA_CRON_TIMES="*/30 * * * *"
|
ARG KOPIA_CRON_SCHEDULE="*/30 * * * *"
|
||||||
ENV KOPIA_CRON_TIMES ${KOPIA_CRON_TIMES}
|
ENV KOPIA_CRON_SCHEDULE ${KOPIA_CRON_SCHEDULE}
|
||||||
|
|
||||||
ADD run-backup.sh /
|
ADD run-backup.sh /
|
||||||
ADD entrypoint.sh /
|
ADD entrypoint.sh /
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
CRONTAB=/etc/cron.d/kopia-backup
|
CRONTAB=/etc/cron.d/kopia-backup
|
||||||
|
|
||||||
echo "Running cron with schedule ${KOPIA_CRON_TIMES}"
|
echo "Running cron with schedule ${KOPIA_CRON_SCHEDULE}"
|
||||||
|
|
||||||
echo "${KOPIA_CRON_TIMES} /run-backup.sh > /dev/stdout" > ${CRONTAB}
|
echo "${KOPIA_CRON_SCHEDULE} /run-backup.sh > /dev/stdout" > ${CRONTAB}
|
||||||
chmod 0644 ${CRONTAB}
|
chmod 0644 ${CRONTAB}
|
||||||
crontab ${CRONTAB}
|
crontab ${CRONTAB}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue