update path to store data

This commit is contained in:
Fransolet Thomas 2023-04-23 17:17:46 +02:00
parent 92d7efd34d
commit c9269aaf3a

View File

@ -302,7 +302,8 @@ namespace ManagerService.Controllers
Console.WriteLine($"currentDirectory: {currentDirectory}"); Console.WriteLine($"currentDirectory: {currentDirectory}");
#if RELEASE #if RELEASE
Console.WriteLine($"currentDirectory: {Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}"); 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()); System.IO.Directory.CreateDirectory(currentDirectory.ToString());
#endif #endif