From 550e7857a69bc36ad1675b99c8ca0ca9683234ec Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 17 Aug 2023 17:03:39 +0200 Subject: [PATCH] fix: rename KOPIA_CRON_TIMES to KOPIA_CRON_SCHEDULE --- Dockerfile | 4 ++-- entrypoint.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec8c180..bafe541 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 / diff --git a/entrypoint.sh b/entrypoint.sh index 5011134..9ab4c8e 100755 --- a/entrypoint.sh +++ b/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}