stefanpejcic / OpenPanel

A highly customizable web hosting control panel built with Docker 🐳
https://openpanel.com
216 stars 33 forks source link

[Errno 2] No such file or directory: '/etc/openpanel/clamav/domains.list' #271

Closed stefanpejcic closed 2 weeks ago

stefanpejcic commented 2 weeks ago

OpenPanel version(s) affected

0.3.4

What OS are you using?

Ubuntu

Description

when deleting domain, if clamav was enabled module when doamin was created, and later gets disabled, then error

[Errno 2] No such file or directory: '/etc/openpanel/clamav/domains.list'

How to reproduce

  1. enable clamav module
  2. add domain
  3. disable clamav module
  4. delete domain

Possible Solution

skip when clamav_watch_file is missing

Additional Context

No response