From ded577f40acb67424b150fbf35cb117ec1b75d0e Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sat, 1 Jun 2024 07:27:18 +0300 Subject: [PATCH] feat: add path depending on OS --- Endpoint/Controllers/Configuration/SetupController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Endpoint/Controllers/Configuration/SetupController.cs b/Endpoint/Controllers/Configuration/SetupController.cs index de0a0be..5d98699 100644 --- a/Endpoint/Controllers/Configuration/SetupController.cs +++ b/Endpoint/Controllers/Configuration/SetupController.cs @@ -213,8 +213,10 @@ public class SetupController(ISetupToken setupToken, IMaintenanceModeNotConfigur true => new LogSettings { EnableLogToFile = true, - LogFileName = "logging-", - LogFilePath = "logs" + LogFileName = "log-", + LogFilePath = OperatingSystem.IsWindows() || PathBuilder.IsDefaultPath ? + PathBuilder.Combine("logs") : + "/var/log/mirea" }, false => new LogSettings {