-Config.Temp
All checks were successful
Dotnet build and test / build (pull_request) Successful in 12m53s
All checks were successful
Dotnet build and test / build (pull_request) Successful in 12m53s
This commit is contained in:
parent
3bc4142383
commit
eebd46176d
6 changed files with 38 additions and 356 deletions
|
|
@ -25,14 +25,15 @@ public class Startup
|
|||
Config.Authority = siteSettings.Value.Authority;
|
||||
string blogsDir = siteSettings.Value.Blog ?? throw new Exception("blogsDir is not set.");
|
||||
string billsDir = siteSettings.Value.Bills ?? throw new Exception("billsDir is not set.");
|
||||
Config.Temp = siteSettings.Value.TempDir;
|
||||
string tempDir = siteSettings.Value.TempDir ?? throw new Exception("tempDir is not set.");
|
||||
|
||||
Config.PayPalSettings = payPalSettings.Value;
|
||||
|
||||
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||
|
||||
// TODO implement an installation & upgrade procedure
|
||||
// Create required directories
|
||||
foreach (string dir in new string[] { blogsDir, billsDir, Config.Temp })
|
||||
foreach (string dir in new string[] { blogsDir, billsDir, tempDir })
|
||||
{
|
||||
if (dir == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue