From e31547a67c8baa7151bc009119f84cdd04eeca99 Mon Sep 17 00:00:00 2001
From: gsalin <gerald.salin@inrae.fr>
Date: Wed, 24 Apr 2024 11:32:03 +0200
Subject: [PATCH] delete fastq.gz for ONT runs during the purge process

---
 ui/nG6/Classes/Controller/class.tx_nG6_utils.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/nG6/Classes/Controller/class.tx_nG6_utils.php b/ui/nG6/Classes/Controller/class.tx_nG6_utils.php
index b593d4977..78cf9573f 100644
--- a/ui/nG6/Classes/Controller/class.tx_nG6_utils.php
+++ b/ui/nG6/Classes/Controller/class.tx_nG6_utils.php
@@ -212,7 +212,7 @@ class tx_nG6_utils {
                 return 0;
             }
     		#Exclusion of the log files from the purge process
-//     		$stream = ssh2_exec($connection, 'find '.$directory.' -maxdepth 1 -not -name "*.html" -not -name "*.png" -not -name "*.log" -not -name "*.log.gz" -not -name "*.pdf" -not -name "md5sum.txt" -not -name "*GXB02039*" -not -name "*PCT0078*" -type f -exec rm -f {} \;');
+//     		$stream = ssh2_exec($connection, 'find '.$directory.' -maxdepth 1 -not -name "*.html" -not -name "*.png" -not -name "*.log" -not -name "*.log.gz" -not -name "*.pdf" -not -name "md5sum.txt" -name "*GXB02039*fastq.gz" -name "*PCT0078*fastq.gz" -type f -exec rm -f {} \;');
 //     		$errorStream = ssh2_fetch_stream($stream, SSH2_STREAM_STDERR);
 //     		// Enable blocking for both streams
 //     		stream_set_blocking($errorStream, true);
-- 
GitLab