mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Avoid creating www directory if it doesn't exist yet
Fixes nixOS packaging issues
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user