From 486f3ac1e6279690cbd6a7a56311ebaf8bfa7fb4 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Mon, 8 Jul 2024 23:08:44 +1000 Subject: [PATCH] Use socketdir with pg_upgrade command for macOS ARM support Thanks to @gav-fyi for figuring this out. :) --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index c0485b4..17a0bf3 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -518,7 +518,7 @@ _main() { echo "---------------------------------------" echo "Running pg_upgrade command, from $(pwd)" echo "---------------------------------------" - /usr/local/bin/pg_upgrade --username="${POSTGRES_USER}" --link -d "${OLD}" -D "${NEW}" -b "${OLDPATH}/bin" -B /usr/local/bin + /usr/local/bin/pg_upgrade --username="${POSTGRES_USER}" --link -d "${OLD}" -D "${NEW}" -b "${OLDPATH}/bin" -B /usr/local/bin --socketdir="/var/run/postgresql" echo "--------------------------------------" echo "Running pg_upgrade command is complete" echo "--------------------------------------"