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