From bf944d228effe8900738986694d1ff0b584e7889 Mon Sep 17 00:00:00 2001 From: atef Date: Tue, 21 May 2024 11:19:16 +0200 Subject: [PATCH] Adding the status file to be accessed by customer --- csharp/App/SaliMax/src/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index 50b5049d4..426ba608e 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -675,6 +675,10 @@ internal static class Program var s3Path = timeStamp.ToUnixTime() + ".csv"; var request = s3Config.CreatePutRequest(s3Path); + // This is temporary for Wittman, but now it's for all Instalattion + await File.WriteAllTextAsync("/var/www/html/status.csv", csv.SplitLines().Where(l => !l.Contains("Secret")).JoinLines()); + + // Compress CSV data to a byte array byte[] compressedBytes; using (var memoryStream = new MemoryStream())