From 9724e054b31cb241316d69c28b77346ef88d90ee Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Sun, 22 Feb 2026 21:22:16 -0800 Subject: [PATCH] [SPARK-55637][SQL][TESTS] Generalize `postgres-krb-setup.sh` to find config files --- .../src/test/resources/postgres-krb-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connector/docker-integration-tests/src/test/resources/postgres-krb-setup.sh b/connector/docker-integration-tests/src/test/resources/postgres-krb-setup.sh index dd9fd8cb51adf..3c6aff0ee3227 100755 --- a/connector/docker-integration-tests/src/test/resources/postgres-krb-setup.sh +++ b/connector/docker-integration-tests/src/test/resources/postgres-krb-setup.sh @@ -16,6 +16,6 @@ # limitations under the License. # -sed -i 's/host all all all .*/host all all all gss/g' /var/lib/postgresql/data/pg_hba.conf -echo "krb_server_keyfile='/docker-entrypoint-initdb.d/postgres.keytab'" >> /var/lib/postgresql/data/postgresql.conf +sed -i 's/host all all all .*/host all all all gss/g' $(find /var/lib/postgresql -name pg_hba.conf) +echo "krb_server_keyfile='/docker-entrypoint-initdb.d/postgres.keytab'" >> $(find /var/lib/postgresql -name postgresql.conf) psql -U postgres -c "CREATE ROLE \"postgres/__IP_ADDRESS_REPLACE_ME__@EXAMPLE.COM\" LOGIN SUPERUSER"