-Config.Temp
All checks were successful
Dotnet build and test / build (pull_request) Successful in 12m53s

This commit is contained in:
Paul Schneider 2026-09-18 11:13:44 +01:00
commit eebd46176d
Signed by: notazof
GPG key ID: 1DD5D838E5343B06
6 changed files with 38 additions and 356 deletions

View file

@ -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)
{