webass Posted July 8, 2014 Share Posted July 8, 2014 Hi, auf eine Froxlor installation bezogen muss das folgende Script doch auf bestimmte werte hin angepasst werden, richtig? http://blog.ip-projects.de/automatischer-virenschutz-debian-ubuntu-server/ Ich passe an (hier Original): #!/bin/sh ### Allgemeine Angaben mailbetreff="Root-Server 123456 Virenwarnung" administratormail="info@ip-projects.de" ### Script ### Ausl?sen des Scans rm -R /home/clamav/scanlog-www.log clamscan /var/www/virtual/ --recursive=yes --log=/home/clamav/scanlog-www.log --infected --scan-html=yes --scan-pdf=yes --exclude=backups --exclude=logs --exclude=errors rm -R /home/clamav/scanlog-mail.log clamscan /var/mail/ --recursive=yes --log=/home/clamav/scanlog-mail.log --infected --scan-html=yes --scan-pdf=yes --exclude=new ### Versenden der E-Mail if grep -rl 'Infected files: 0' /home/clamav/scanlog-www.log then echo "kein Virus auf www gefunden" else cat /home/clamav/scanlog-www.log | mail -s "$mailbetreff" $administratormail fi if grep -rl 'Infected files: 0' /home/clamav/scanlog-mail.log then echo "kein Virus auf mail gefunden" else cat /home/clamav/scanlog-mail.log | mail -s "$mailbetreff" $administratormail fi Wie folgt beim clamscan: #!/bin/sh ### Allgemeine Angaben mailbetreff="VPS 123456 Virenwarnung" administratormail="email@email.cc" ### Script ### Ausl?sen des Scans rm -R /home/clamav/scanlog-www.log clamscan /var/customers/webs --recursive=yes --log=/home/clamav/scanlog-www.log --infected --scan-html=yes --scan-pdf=yes --exclude=backups --exclude=logs $ rm -R /home/clamav/scanlog-mail.log clamscan /var/customers/mail --recursive=yes --log=/home/clamav/scanlog-mail.log --infected --scan-html=yes --scan-pdf=yes --exclude=new ### Versenden der E-Mail if grep -rl 'Infected files: 0' /home/clamav/scanlog-www.log then echo "kein Virus auf www gefunden" else cat /home/clamav/scanlog-www.log | mail -s "$mailbetreff" $administratormail fi if grep -rl 'Infected files: 0' /home/clamav/scanlog-mail.log then echo "kein Virus auf mail gefunden" else cat /home/clamav/scanlog-mail.log | mail -s "$mailbetreff" $administratormail fi Korrekt? Link to comment Share on other sites More sharing options...
d00p Posted July 8, 2014 Share Posted July 8, 2014 Fragst du weil es Fehler gibt oder wie? Ist kein script von uns, woher sollenn wir wissen wo was hingeh?rt? Wenn du die Kunden webs scannen willst ist der Ordner sofern du den so in den Einstellungen hinterlegt hast korrekt. Link to comment Share on other sites More sharing options...
webass Posted July 9, 2014 Author Share Posted July 9, 2014 Ja, genau das wollte ich nur wissen, ob das die beiden Ordner sind die gescannt werden m?ssen. So war meine Frage ja auch formuliert. Vielen Dank. Link to comment Share on other sites More sharing options...
d00p Posted July 9, 2014 Share Posted July 9, 2014 Jo passt Link to comment Share on other sites More sharing options...
Question
webass
Hi,
auf eine Froxlor installation bezogen muss das folgende Script doch auf bestimmte werte hin angepasst werden, richtig?
http://blog.ip-projects.de/automatischer-virenschutz-debian-ubuntu-server/
Ich passe an (hier Original):
Wie folgt beim clamscan:
Korrekt?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.