Skip to content

Commit

Permalink
Update ClamAV document
Browse files Browse the repository at this point in the history
  • Loading branch information
seafile-dev committed Apr 24, 2024
1 parent d3bfc14 commit 2c38629
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions manual/deploy_pro/deploy_clamav_with_seafile.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
# Deploy ClamAV with Seafile

## Use ClamAV in binary based deployment

### Install clamav-daemon & clamav-freshclam

```
apt-get install clamav-daemon clamav-freshclam
```

You should run Clamd with a root permission to scan any files.
Edit the conf `/etc/clamav/clamd.conf`,change the following line:

```
LocalSocketGroup root
User root
```

### Start the clamav-daemon

```
systemctl start clamav-daemon
```

* Test the software

```
$ curl https://www.eicar.org/download/eicar.com.txt | clamdscan -
```

The output must include:

```
stream: Eicar-Test-Signature FOUND
```

## Use Clamav with Docker based deployment

### Add Clamav to docker-compose.yml
Expand Down Expand Up @@ -75,3 +41,39 @@ docker compose up -d
Wait some minutes until Clamav finished initializing.

Now Clamav can be used.


## Use ClamAV in binary based deployment

### Install clamav-daemon & clamav-freshclam

```
apt-get install clamav-daemon clamav-freshclam
```

You should run Clamd with a root permission to scan any files.
Edit the conf `/etc/clamav/clamd.conf`,change the following line:

```
LocalSocketGroup root
User root
```

### Start the clamav-daemon

```
systemctl start clamav-daemon
```

* Test the software

```
$ curl https://www.eicar.org/download/eicar.com.txt | clamdscan -
```

The output must include:

```
stream: Eicar-Test-Signature FOUND
```

0 comments on commit 2c38629

Please sign in to comment.