diff --git a/postgres-backup-s3/Dockerfile b/postgres-backup-s3/Dockerfile index 80c8fa6..b554a69 100644 --- a/postgres-backup-s3/Dockerfile +++ b/postgres-backup-s3/Dockerfile @@ -1,4 +1,4 @@ -FROM webdevops/go-crond:master-alpine +FROM webdevops/go-crond:main-alpine LABEL maintainer="Johannes Schickling " ADD install.sh install.sh diff --git a/postgres-backup-s3/install.sh b/postgres-backup-s3/install.sh index d993d53..987568c 100644 --- a/postgres-backup-s3/install.sh +++ b/postgres-backup-s3/install.sh @@ -4,8 +4,8 @@ set -eo pipefail apk update -apk add openssl aws-cli -apk add postgresql-client --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/main +apk add openssl aws-cli +apk add postgresql-client # cleanup rm -rf /var/cache/apk/* diff --git a/postgres-backup-s3/run.sh b/postgres-backup-s3/run.sh index ef80106..535d553 100644 --- a/postgres-backup-s3/run.sh +++ b/postgres-backup-s3/run.sh @@ -9,6 +9,6 @@ fi if [ "${SCHEDULE}" = "**None**" ]; then sh backup.sh else - echo -e "SHELL=/bin/sh\n${SCHEDULE} /bin/sh /backup.sh" > /etc/crontabs/root + echo -e "SHELL=/bin/sh\n${SCHEDULE} root /bin/sh /backup.sh" > /etc/crontabs/root exec go-crond /etc/crontabs/root fi