1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-07-09 01:05:48 +02:00
Files
Mailu/optional/clamav/start.py

12 lines
238 B
Python
Raw Normal View History

2018-10-23 11:58:36 +03:00
#!/usr/local/bin/python3
2018-10-22 18:01:59 +03:00
import os
# Bootstrap the database if clamav is running for the first time
os.system("[ -f /data/main.cvd ] || freshclam")
# Run the update daemon
os.system("freshclam -d -c 6")
# Run clamav
os.system("clamd")