Changed start.sh to start.py

This commit is contained in:
Ionut Filip
2018-10-22 18:01:59 +03:00
parent eb7dfb5771
commit 0e5606d493
6 changed files with 23 additions and 19 deletions

12
optional/clamav/start.py Executable file
View File

@@ -0,0 +1,12 @@
#!/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")