Projects
home:ajaissle
kolab-scripts
run-freshclam.sh
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File run-freshclam.sh of Package kolab-scripts
#!/bin/bash PATH=/usr/bin:/bin:/usr/sbin if [[ ! -f /usr/sbin/freshclam ]]; then if [[ -f /var/lib/clamav/daily.cvd ]]; then DATE=$(date +%Y-%m-%d) LAST_MODIFIED_DATE=$(stat -c %z /var/lib/clamav/daily.cvd | awk '{print $1}') if [[ "$DATE" == "$LAST_MODIFIED_DATE" ]]; then echo "ClamAV database is up to date" else UPDATE_CLAMAV=yes fi else UPDATE_CLAMAV=yes fi if [[ "$UPDATE_CLAMAV" == "yes" ]]; then if [[ "$INTERNET_CONNECTIVITY" != "no" ]]; then echo "Updating ClamAV database..." freshclam fi fi else echo "ClamAV can not be updated, freshclam not found" fi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.