Made KlamAV update the existing scheduled scan script.

Before this, KlamAV would fill its directory with identical scheduled
scan scripts. The only thing which might change between them would be
the $PATH variable.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/24/head
Mavridis Philippe 3 years ago
parent 8628f7a34a
commit 26b1152b0d
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -352,7 +352,7 @@ TQString Schedule::createScanScript()
.arg(today.toString("ddMMyy"))
.arg(now.toString("hhmmss"));
TQFile file( TQString("%1/ScanWithKlamav_%2.sh").arg(path).arg(timestring ));
TQFile file( TQString("%1/ScanWithKlamav.sh").arg(path) );
if ( file.open( IO_WriteOnly ) ) {
TQTextStream ts( &file );

Loading…
Cancel
Save