fix: rename KOPIA_CRON_TIMES to KOPIA_CRON_SCHEDULE

main
mandlm 2023-08-17 17:03:39 +02:00
parent a31e7fca38
commit 550e7857a6
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
2 changed files with 4 additions and 4 deletions

View File

@ -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 /

View File

@ -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}