1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-18 03:21:36 +02:00
Mailu/optional/clamav/start.py
2018-10-31 19:17:23 +02:00

13 lines
233 B
Python
Executable File

#!/usr/bin/python3
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")