mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Avoid creating www directory if it doesn't exist yet
Fixes nixOS packaging issues
This commit is contained in:
parent
85437774de
commit
67c5e1f7c4
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ internal static class ArchiKestrel {
|
|||
builder.ConfigureWebHostDefaults(
|
||||
webBuilder => {
|
||||
// Set default web root
|
||||
webBuilder.UseWebRoot(websiteDirectory);
|
||||
if (Directory.Exists(websiteDirectory)) {
|
||||
webBuilder.UseWebRoot(websiteDirectory);
|
||||
}
|
||||
|
||||
// Now conditionally initialize settings that are not possible to override
|
||||
if (customConfigExists) {
|
||||
|
|
Loading…
Reference in a new issue