Comment 17 for bug 1590688

Revision history for this message
Eero (eero+launchpad) wrote :

If somebody else also needs to deploy clamav packages automatically, you can add something like this at the end of your installation scripts:

nohup $(
    command -v systemctl || exit 0
    systemctl status clamav-freshclam || systemctl restart clamav-freshclam
    while [ ! -f /var/lib/clamav/daily.cvd ]
    do
        sleep 1
    done
    sleep 5
    systemctl status clamav-daemon || systemctl restart clamav-daemon
) >/dev/null 2>&1 &