Browse Source

Merge pull request #14228 from JPVenson/bugfix/StartupLookup

Fix source directory for setup template
Joshua M. Boniface 2 weeks ago
parent
commit
6d287d5627
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jellyfin.Server/ServerSetupApp/SetupServer.cs

+ 1 - 1
Jellyfin.Server/ServerSetupApp/SetupServer.cs

@@ -84,7 +84,7 @@ public sealed class SetupServer : IDisposable
     /// <returns>A Task.</returns>
     public async Task RunAsync()
     {
-        var fileTemplate = await File.ReadAllTextAsync(Path.Combine("ServerSetupApp", "index.mstemplate.html")).ConfigureAwait(false);
+        var fileTemplate = await File.ReadAllTextAsync(Path.Combine(AppContext.BaseDirectory, "ServerSetupApp", "index.mstemplate.html")).ConfigureAwait(false);
         _startupUiRenderer = (await ParserOptionsBuilder.New()
             .WithTemplate(fileTemplate)
             .WithFormatter(