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 98e9cc5 commit 34d2c81Copy full SHA for 34d2c81
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -391,9 +391,11 @@ function initiate_upgrade {
391
# instance, since pg_upgrade connects to the db as supabase_admin using unix
392
# sockets, which is gated behind scram-sha-256 per pg_hba.conf.j2. The new
393
# instance is unaffected.
394
- echo "local all supabase_admin trust
+ if ! grep -q "local all supabase_admin trust" /etc/postgresql/pg_hba.conf; then
395
+ echo "local all supabase_admin trust
396
$(cat /etc/postgresql/pg_hba.conf)" > /etc/postgresql/pg_hba.conf
- run_sql -c "select pg_reload_conf();"
397
+ run_sql -c "select pg_reload_conf();"
398
+ fi
399
400
UPGRADE_COMMAND=$(cat <<EOF
401
time ${PGBINNEW}/pg_upgrade \
0 commit comments