From c9269aaf3aef7ec4cf3bf7bab54ac081a47417ac Mon Sep 17 00:00:00 2001 From: Fransolet Thomas Date: Sun, 23 Apr 2023 17:17:46 +0200 Subject: [PATCH] update path to store data --- ManagerService/Controllers/ConfigurationController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ManagerService/Controllers/ConfigurationController.cs b/ManagerService/Controllers/ConfigurationController.cs index e594de3..29a2d4a 100644 --- a/ManagerService/Controllers/ConfigurationController.cs +++ b/ManagerService/Controllers/ConfigurationController.cs @@ -302,7 +302,8 @@ namespace ManagerService.Controllers Console.WriteLine($"currentDirectory: {currentDirectory}"); #if RELEASE Console.WriteLine($"currentDirectory: {Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}"); - currentDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "service-data"); + //currentDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "service-data"); + currentDirectory = Path.Combine("home", "debian", "service-data"); System.IO.Directory.CreateDirectory(currentDirectory.ToString()); #endif