diff --git a/base/Dockerfile b/base/Dockerfile index 89644be..b98183d 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -1,5 +1,5 @@ # syntax = docker/dockerfile:latest -FROM golang:1.19.5-alpine3.17 AS gobuilder +FROM golang:1.20.0-alpine3.17 AS gobuilder ARG SUPERCRONIC_VERSION="v0.2.1" RUN apk add --no-cache git RUN go install github.com/aptible/supercronic@"${SUPERCRONIC_VERSION}" diff --git a/base/entry.sh b/base/entry.sh index 74f5241..bb82904 100644 --- a/base/entry.sh +++ b/base/entry.sh @@ -14,4 +14,10 @@ echo apprise $apprisever supercronic -test /etc/borgmatic.d/crontab.txt || exit 1 # Start supercronic -supercronic /etc/borgmatic.d/crontab.txt +if [ -n "${SUPERCRONIC_EXTRA_FLAGS}" ]; then + echo "The variable SUPERCRONIC_EXTRA_FLAGS is not empty, using extra flags" + supercronic $SUPERCRONIC_EXTRA_FLAGS /etc/borgmatic.d/crontab.txt +else + echo "The variable SUPERCRONIC_EXTRA_FLAGS is empty, starting normally" + supercronic /etc/borgmatic.d/crontab.txt +fi