Update config file logic and unify webDir path to wwwroot
- Prevent overwriting existing config files by only copying example files if the target does not exist. - Set webDir to "wwwroot" for all OSes for consistency. - Update last used publish profile to SelfContained-Win-x64.
This commit is contained in:
@@ -338,7 +338,7 @@ namespace Emby.Server.Implementations.AppBase
|
||||
}
|
||||
|
||||
// Copy example to actual file only if example was just created or if we want to initialize from example
|
||||
if (exampleFileJustCreated)
|
||||
if (exampleFileJustCreated && !File.Exists(path))
|
||||
{
|
||||
File.Copy(examplePath, path, overwrite: false);
|
||||
Logger.LogInformation("Created configuration file from example: {Path}", path);
|
||||
|
||||
Reference in New Issue
Block a user