Adding the status file to be accessed by customer

This commit is contained in:
atef 2024-05-21 11:19:16 +02:00
parent 775c7a1785
commit bf944d228e
1 changed files with 4 additions and 0 deletions

View File

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