From 1527daede848faa27a5f3fd54d635e1e9e646064 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 29 Mar 2023 18:27:02 +0100 Subject: [PATCH] Make sure we can edit the PostgreSQL config --- .github/workflows/run-python-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-python-tests.yml b/.github/workflows/run-python-tests.yml index c0cd66954..66f1bc48c 100644 --- a/.github/workflows/run-python-tests.yml +++ b/.github/workflows/run-python-tests.yml @@ -33,8 +33,8 @@ jobs: - name: Start PostgreSQL run: | - echo -e "local all all trust\n$(cat /etc/postgresql/15/main/pg_hba.conf)" > /etc/postgresql/15/main/pg_hba.conf - echo "shared_preload_libraries = '$libdir/plugin_debugger'" > /etc/postgresql/15/main/postgresql.auto.conf + sudo echo -e "local all all trust\n$(cat /etc/postgresql/15/main/pg_hba.conf)" > /etc/postgresql/15/main/pg_hba.conf + sudo echo "shared_preload_libraries = '$libdir/plugin_debugger'" > /etc/postgresql/15/main/postgresql.auto.conf su - postgres -c '/usr/lib/postgresql/15/bin/postgres -D /var/lib/postgresql/15/main -c config_file=/etc/postgresql/15/main/postgresql.conf &' until runuser -l postgres -c 'pg_isready' 2>/dev/null; do