June 15, 20197 yr To schedule scans, Disable autostart on the app from the docker tab (otherwise it will do a scan everytime you start the server) - up to you. Run this as a user script on a schedule which you choose. Will send a start / stop notification with the # of infected files. You'll have to look at the logs to determine which file(s) are infected #!/usr/bin/php <? exec('/usr/local/emhttp/plugins/dynamix/scripts/notify -e "Antivirus Scan" -s "Antivirus Scan Started" -d "Antivirus Scan Started" -i "normal"'); exec('docker start ClamAV'); for ( ;; ) { $status = trim(exec("docker ps | grep ClamAV")); if ( ! $status ) break; sleep(600); } $infected = system("docker logs ClamAV | grep -i 'Infected'"); exec('/usr/local/emhttp/plugins/dynamix/scripts/notify -e "Antivirus Scan" -s "Antivirus Scan Finished" -d '.escapeshellarg($infected).' -i "normal"'); ?> script
June 15, 20197 yr To update what you want clamscan to scan, change the highlighted value in the Docker container ClamAV.
June 15, 20197 yr @Squid Can your script be modified to exclude or specify a Share? It went HayWire Scanning my TimeMachine Backup. Also we might want to start posting the good stuff on the Support thread so it doesn’t get lost. ************** Note ***************** Saw your mention about Multiple Instances of Docker to Select which to Scan in the Support Thread. Thanks.
June 15, 20197 yr 1 minute ago, kizer said: Also we might want to start posting the good stuff on the Support thread so it doesn’t get lost. Agreed: In Lounge until it gets moved.
June 15, 20197 yr 3 minutes ago, TQ said: Agreed: In Lounge until it gets moved. I just Moved it to Docker Section.
June 17, 20197 yr On 6/15/2019 at 1:24 PM, kizer said: I just Moved it to Docker Section. And surprisingly, you didn't delete it in the process 😜 Edited June 17, 20197 yr by Squid
June 17, 20197 yr 3 hours ago, Squid said: And surprisingly, you didn't delete it in the process 😜 Lol... I'm guessing I'm never going live that one down.
September 29, 20196 yr trying this out, thanks for making it!Absolutely!Let’s keep our arrays virus free!Sent from a small phone with phat phingers
Archived
This topic is now archived and is closed to further replies.