fix: rename KOPIA_CRON_TIMES to KOPIA_CRON_SCHEDULE
This commit is contained in:
parent
a31e7fca38
commit
550e7857a6
@ -3,8 +3,8 @@ FROM kopia/kopia
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y cron && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG KOPIA_CRON_TIMES="*/30 * * * *"
|
||||
ENV KOPIA_CRON_TIMES ${KOPIA_CRON_TIMES}
|
||||
ARG KOPIA_CRON_SCHEDULE="*/30 * * * *"
|
||||
ENV KOPIA_CRON_SCHEDULE ${KOPIA_CRON_SCHEDULE}
|
||||
|
||||
ADD run-backup.sh /
|
||||
ADD entrypoint.sh /
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
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}
|
||||
crontab ${CRONTAB}
|
||||
|
||||
|
Reference in New Issue
Block a user