From 36a88fe5d2c6a07c5574d574934a4532919f72f3 Mon Sep 17 00:00:00 2001 From: notplants Date: Thu, 18 Jun 2026 22:38:09 +0000 Subject: [PATCH] fix(db): restore postgres command dropped by entrypoint override Overriding entrypoint in compose clears the image default CMD, leaving pgautoupgrade with no $1=postgres, so its version logic ran with unset PGTARGET_MAJOR and aborted. Restore command: postgres. --- compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compose.yml b/compose.yml index 80907ca..245cb63 100644 --- a/compose.yml +++ b/compose.yml @@ -78,6 +78,9 @@ services: target: /pg_backup.sh mode: 0555 entrypoint: /usr/local/bin/cc-db-entrypoint.sh + # overriding entrypoint drops the image's default CMD, so restore it; the + # wrapper passes "$@" through and pgautoupgrade keys its logic on $1=postgres + command: postgres environment: - POSTGRES_HOST_AUTH_METHOD=trust - POSTGRES_USER=discourse