Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > by-pkgid > c0c0b760d5bd9b7c92e97da5a0d04842 > scriptlet

clamav-0.97.8-alt0.M41.1.i586.rpm

PREUN

/bin/sh
/usr/sbin/preun_service clamd

POSTIN

/bin/sh
# Format of database changing occasionally. So removing database.
for FNAME in `ls --ignore=*.socket /var/lib/clamav`; do
    [ -h /var/lib/clamav/$FNAME ] && continue
    [ -d /var/lib/clamav/$FNAME ] && rm -rf /var/lib/clamav/$FNAME
    [ -f /var/lib/clamav/$FNAME ] && rm -f /var/lib/clamav/$FNAME
done

# randomize time of database updating (in order to distribute load on servers evenly)
RNDM=$[$RANDOM/555]
subst s/^[0-9]*/$RNDM/ /etc/cron.d/freshclam

/usr/sbin/post_service clamd