Utilisateur INRAE
Ne pas utiliser l’établissement INRAE pour la connexion SSO, choisir INRA ou IRSTEA comme habituellement.
📣 Changement de configuration en cours, plus d'info ici .

Commit dafd0076 authored by Romain Therville's avatar Romain Therville 🐭

Update to class.tx_nG6_utils.php

Function purge_directory updated to exclude log files.

issue #190
parent a398dbee
......@@ -160,7 +160,7 @@ class tx_nG6_utils {
return 0;
}
$stream = ssh2_exec($connection, 'find '.$directory.' -maxdepth 1 -not -name "*.html" -not -name "*.png" -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" -not -name "*GXB02039*" -not -name "*PCT0078*" -type f -exec rm -f {} \;');
$errorStream = ssh2_fetch_stream($stream, SSH2_STREAM_STDERR);
// Enable blocking for both streams
stream_set_blocking($errorStream, true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment