We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0775be0 commit 8ade21aCopy full SHA for 8ade21a
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -406,9 +406,11 @@ function initiate_upgrade {
406
# instance, since pg_upgrade connects to the db as supabase_admin using unix
407
# sockets, which is gated behind scram-sha-256 per pg_hba.conf.j2. The new
408
# instance is unaffected.
409
- echo "local all supabase_admin trust
+ if ! grep -q "local all supabase_admin trust" /etc/postgresql/pg_hba.conf; then
410
+ echo "local all supabase_admin trust
411
$(cat /etc/postgresql/pg_hba.conf)" > /etc/postgresql/pg_hba.conf
- run_sql -c "select pg_reload_conf();"
412
+ run_sql -c "select pg_reload_conf();"
413
+ fi
414
415
UPGRADE_COMMAND=$(cat <<EOF
416
time ${PGBINNEW}/pg_upgrade \
0 commit comments