prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Use official clamav docker image for Mailu clamav image
  With https://github.com/Cisco-Talos/clamav having official docker support https://hub.docker.com/r/clamav/clamav it might be worth considering referring or preferring that container in the future?
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `optional/clamav/start.py`
  Content:
  ```
  1 #!/usr/bin/env python3
  2 
  3 import os
  4 import logging as logger
  5 import sys
  6 from socrate import system
  7 
  8 system.set_env(log_filters=r'SelfCheck: Database status OK\.$')
  9 
  10 # Bootstrap the database if clamav is running for the first time
  11 if not os.path.isfile("/data/main.cvd"):
  12     logger.info("Starting primary virus DB download")
  13     os.system("freshclam")
  14 
  15 # Run the update daemon
  16 logger.info("Starting the update daemon")
  17 os.system("freshclam -d -c 6")
  18 
  19 # Run clamav
  20 logger.info("Starting clamav")
  21 os.system("clamd")
  22
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/optional/clamav/start.py b/optional/clamav/start.py
  deleted file mode 100755
  --- a/optional/clamav/start.py
  +++ /dev/null
  @@ -1,21 +0,0 @@
  -#!/usr/bin/env python3
  -
  -import os
  -import logging as logger
  -import sys
  -from socrate import system
  -
  -system.set_env(log_filters=r'SelfCheck: Database status OK\.$')
  -
  -# Bootstrap the database if clamav is running for the first time
  -if not os.path.isfile("/data/main.cvd"):
  -    logger.info("Starting primary virus DB download")
  -    os.system("freshclam")
  -
  -# Run the update daemon
  -logger.info("Starting the update daemon")
  -os.system("freshclam -d -c 6")
  -
  -# Run clamav
  -logger.info("Starting clamav")
  -os.system("clamd")
  
verification_info: {"golden_diff": "diff --git a/optional/clamav/start.py b/optional/clamav/start.py\ndeleted file mode 100755\n--- a/optional/clamav/start.py\n+++ /dev/null\n@@ -1,21 +0,0 @@\n-#!/usr/bin/env python3\n-\n-import os\n-import logging as logger\n-import sys\n-from socrate import system\n-\n-system.set_env(log_filters=r'SelfCheck: Database status OK\\.$')\n-\n-# Bootstrap the database if clamav is running for the first time\n-if not os.path.isfile(\"/data/main.cvd\"):\n-    logger.info(\"Starting primary virus DB download\")\n-    os.system(\"freshclam\")\n-\n-# Run the update daemon\n-logger.info(\"Starting the update daemon\")\n-os.system(\"freshclam -d -c 6\")\n-\n-# Run clamav\n-logger.info(\"Starting clamav\")\n-os.system(\"clamd\")\n", "issue": "Use official clamav docker image for Mailu clamav image\nWith https://github.com/Cisco-Talos/clamav having official docker support https://hub.docker.com/r/clamav/clamav it might be worth considering referring or preferring that container in the future?\n", "before_files": [{"content": "#!/usr/bin/env python3\n\nimport os\nimport logging as logger\nimport sys\nfrom socrate import system\n\nsystem.set_env(log_filters=r'SelfCheck: Database status OK\\.$')\n\n# Bootstrap the database if clamav is running for the first time\nif not os.path.isfile(\"/data/main.cvd\"):\n    logger.info(\"Starting primary virus DB download\")\n    os.system(\"freshclam\")\n\n# Run the update daemon\nlogger.info(\"Starting the update daemon\")\nos.system(\"freshclam -d -c 6\")\n\n# Run clamav\nlogger.info(\"Starting clamav\")\nos.system(\"clamd\")\n", "path": "optional/clamav/start.py"}], "after_files": [{"content": null, "path": "optional/clamav/start.py"}]}