#!/bin/bash
mkdir {bin,sbin,lib64}
cp /opt/afterlogic/bin/{clamav-config,clambc,clamconf,clamdscan,clamdtop,clamscan,freshclam,sigtool} ./bin/
cp /opt/afterlogic/sbin/clamd ./sbin/
cp /opt/afterlogic/lib64/{libclamav.la,libclamav.so.*,libclamunrar_iface.la,libclamunrar_iface.so.*,libclamunrar.la,libclamunrar.so.*,libclamav.so,libclamav.so.*,libclamunrar_iface.so,libclamunrar_iface.so.*,libclamunrar.so,libclamunrar.so.*} ./lib64/
cp -r /opt/afterlogic/lib64/pkgconfig ./lib64/
mv /opt/afterlogic/var/lib/virus-db virus-db-old
mkdir /opt/afterlogic/var/lib/virus-db
chown afterlogic: /opt/afterlogic/var/lib/virus-db
