From 7b72203cbf2c8ee57bf9e7dc5bf441db21269d7e Mon Sep 17 00:00:00 2001 From: opencodecabilloteu Date: Mon, 15 Jun 2026 17:24:59 -0400 Subject: [PATCH] fix: create www-data PostgreSQL role for Unix socket auth --- tests/test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test.sh b/tests/test.sh index b796a29..2309034 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -72,6 +72,9 @@ if [ "$READY" = false ]; then exit 1 fi +# Ensure www-data role exists for Unix socket connection +docker exec "$DB_CONTAINER" psql -U ttrss -d ttrss -c "CREATE ROLE "www-data" WITH LOGIN;" 2>/dev/null || true + echo "Updating TT-RSS database schema..." echo yes | docker exec -i -u www-data -e DB_HOST=db -e DB_PORT=5432 "$CONTAINER_NAME" php /var/www/ttrss/update.php --update-schema 2>&1 || true sleep 2