Skip to content

Commit

Permalink
Use socketdir with pg_upgrade command for macOS ARM support
Browse files Browse the repository at this point in the history
Thanks to @gav-fyi for figuring this out. :)
  • Loading branch information
justinclift committed Jul 8, 2024
1 parent d47b5e3 commit 63016f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "--------------------------------------"
Expand Down

0 comments on commit 63016f2

Please sign in to comment.