From 581d2f1fac9f78d86ed219e138618343f7a45afa Mon Sep 17 00:00:00 2001 From: opencodecabilloteu Date: Mon, 15 Jun 2026 17:27:23 -0400 Subject: [PATCH] fix: use PGPASSWORD for www-data role creation --- tests/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.sh b/tests/test.sh index 92e5f0d..1ec8765 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -77,7 +77,7 @@ if [ "$READY" = false ]; then 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 +docker exec -e PGPASSWORD=*** "$DB_CONTAINER" psql -U ttrss -d ttrss <<<"CREATE ROLE "www-data" WITH LOGIN;" 2>/dev/null; docker exec -e PGPASSWORD=*** "$DB_CONTAINER" psql -U ttrss -d ttrss <<<"GRANT ALL ON DATABASE ttrss TO "www-data";" 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