From 6bbb73421580d6152ab25a0580c5e71e10c9cf8e Mon Sep 17 00:00:00 2001 From: Bruno Andrade Date: Fri, 24 Nov 2023 22:13:01 +0000 Subject: [PATCH] chore: update docker aio entrypoint to handle GOTRUE_DISABLED --- common.vars.pkr.hcl | 2 +- docker/all-in-one/entrypoint.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common.vars.pkr.hcl b/common.vars.pkr.hcl index b59c3c2e0..4175121b2 100644 --- a/common.vars.pkr.hcl +++ b/common.vars.pkr.hcl @@ -1 +1 @@ -postgres-version = "15.1.0.134-rc-1" +postgres-version = "15.1.0.134" diff --git a/docker/all-in-one/entrypoint.sh b/docker/all-in-one/entrypoint.sh index 63291ff44..f857577db 100755 --- a/docker/all-in-one/entrypoint.sh +++ b/docker/all-in-one/entrypoint.sh @@ -246,6 +246,11 @@ if [ "${FAIL2BAN_DISABLED:-}" == "true" ]; then sed -i "s/autorestart=.*/autorestart=false/" /etc/supervisor/services/fail2ban.conf fi +if [ "${GOTRUE_DISABLED:-}" == "true" ]; then + sed -i "s/autostart=.*/autostart=false/" /etc/supervisor/services/gotrue.conf + sed -i "s/autorestart=.*/autorestart=false/" /etc/supervisor/services/gotrue.conf +fi + if [ "${PLATFORM_DEPLOYMENT:-}" == "true" ]; then enable_swap create_lsn_checkpoint_file