From 4e9ae7e6177ec51333dc5597047e25b5419bfed7 Mon Sep 17 00:00:00 2001 From: Hermann Mayer Date: Wed, 13 Nov 2024 21:16:34 +0100 Subject: [PATCH] Added support for custom POSTGRES_ARGS. Signed-off-by: Hermann Mayer --- 16.4/config/postgres.sh | 5 +++++ 16.4/config/supervisor/postgres.conf | 2 +- 17.0/config/postgres.sh | 5 +++++ 17.0/config/supervisor/postgres.conf | 2 +- config/postgres.sh | 5 +++++ config/supervisor/postgres.conf | 2 +- 6 files changed, 18 insertions(+), 3 deletions(-) create mode 100755 16.4/config/postgres.sh create mode 100755 17.0/config/postgres.sh create mode 100755 config/postgres.sh diff --git a/16.4/config/postgres.sh b/16.4/config/postgres.sh new file mode 100755 index 0000000..7b5ec6d --- /dev/null +++ b/16.4/config/postgres.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export POSTGRES_ARGS=${POSTGRES_ARGS:-''} + +exec /usr/local/bin/docker-entrypoint.sh postgres ${POSTGRES_ARGS} diff --git a/16.4/config/supervisor/postgres.conf b/16.4/config/supervisor/postgres.conf index 5bb95e7..934f5ce 100644 --- a/16.4/config/supervisor/postgres.conf +++ b/16.4/config/supervisor/postgres.conf @@ -1,7 +1,7 @@ [program:postgres] priority=20 directory=/tmp -command=/usr/local/bin/docker-entrypoint.sh postgres +command=/usr/local/bin/postgres.sh user=root autostart=true autorestart=true diff --git a/17.0/config/postgres.sh b/17.0/config/postgres.sh new file mode 100755 index 0000000..7b5ec6d --- /dev/null +++ b/17.0/config/postgres.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export POSTGRES_ARGS=${POSTGRES_ARGS:-''} + +exec /usr/local/bin/docker-entrypoint.sh postgres ${POSTGRES_ARGS} diff --git a/17.0/config/supervisor/postgres.conf b/17.0/config/supervisor/postgres.conf index 5bb95e7..934f5ce 100644 --- a/17.0/config/supervisor/postgres.conf +++ b/17.0/config/supervisor/postgres.conf @@ -1,7 +1,7 @@ [program:postgres] priority=20 directory=/tmp -command=/usr/local/bin/docker-entrypoint.sh postgres +command=/usr/local/bin/postgres.sh user=root autostart=true autorestart=true diff --git a/config/postgres.sh b/config/postgres.sh new file mode 100755 index 0000000..7b5ec6d --- /dev/null +++ b/config/postgres.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export POSTGRES_ARGS=${POSTGRES_ARGS:-''} + +exec /usr/local/bin/docker-entrypoint.sh postgres ${POSTGRES_ARGS} diff --git a/config/supervisor/postgres.conf b/config/supervisor/postgres.conf index 5bb95e7..934f5ce 100644 --- a/config/supervisor/postgres.conf +++ b/config/supervisor/postgres.conf @@ -1,7 +1,7 @@ [program:postgres] priority=20 directory=/tmp -command=/usr/local/bin/docker-entrypoint.sh postgres +command=/usr/local/bin/postgres.sh user=root autostart=true autorestart=true