# INSTALL case "$ACTION" in post) # Only if not updating if [ "$UPDATE" != "yes" ]; then # Create the database directory mkdir -p /var/lib/clamav # The clamav user owns it chown -R clamav:clamav /var/lib/clamav # Let group members write to it chmod g+w /var/lib/clamav fi ;; esac