mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
update startup wizard
This commit is contained in:
@@ -19,7 +19,7 @@ namespace MediaBrowser.Api.System
|
||||
/// Class GetSystemInfo
|
||||
/// </summary>
|
||||
[Route("/System/Info", "GET", Summary = "Gets information about the server")]
|
||||
[Authenticated(EscapeParentalControl = true)]
|
||||
[Authenticated(EscapeParentalControl = true, AllowBeforeStartupWizard = true)]
|
||||
public class GetSystemInfo : IReturn<SystemInfo>
|
||||
{
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace MediaBrowser.Api.System
|
||||
|
||||
try
|
||||
{
|
||||
files = _fileSystem.GetFiles(_appPaths.LogDirectoryPath)
|
||||
files = _fileSystem.GetFiles(_appPaths.LogDirectoryPath)
|
||||
.Where(i => string.Equals(i.Extension, ".txt", StringComparison.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
}
|
||||
@@ -146,7 +146,7 @@ namespace MediaBrowser.Api.System
|
||||
|
||||
public Task<object> Get(GetLogFile request)
|
||||
{
|
||||
var file = _fileSystem.GetFiles(_appPaths.LogDirectoryPath)
|
||||
var file = _fileSystem.GetFiles(_appPaths.LogDirectoryPath)
|
||||
.First(i => string.Equals(i.Name, request.Name, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
return ResultFactory.GetStaticFileResult(Request, file.FullName, FileShare.ReadWrite);
|
||||
|
||||
Reference in New Issue
Block a user