From 4f78455960369875ae84cffebdd7d5583c114850 Mon Sep 17 00:00:00 2001 From: Pandoks_ <35944715+Pandoks@users.noreply.github.com> Date: Sun, 29 Dec 2024 21:44:30 -0800 Subject: [PATCH] Allow for custom cmd for backup server for k8 cronjob --- packages/core/src/database/images/backup/Dockerfile | 2 ++ packages/core/src/database/images/backup/entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/database/images/backup/Dockerfile b/packages/core/src/database/images/backup/Dockerfile index e5310220..ff8bf98f 100644 --- a/packages/core/src/database/images/backup/Dockerfile +++ b/packages/core/src/database/images/backup/Dockerfile @@ -17,3 +17,5 @@ RUN chmod +x /usr/local/bin/entrypoint.sh USER pgbackrest ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ] + +CMD [ "pgbackrest", "server", "--config=/etc/pgbackrest/pgbackrest.conf" ] diff --git a/packages/core/src/database/images/backup/entrypoint.sh b/packages/core/src/database/images/backup/entrypoint.sh index a241a26e..e6bec36f 100755 --- a/packages/core/src/database/images/backup/entrypoint.sh +++ b/packages/core/src/database/images/backup/entrypoint.sh @@ -2,4 +2,4 @@ /usr/bin/setup_backups.sh -pgbackrest server --config=/etc/pgbackrest/pgbackrest.conf +exec $@