Sudo is needed to stop/start system services

This commit is contained in:
Marius Gedminas 2019-10-22 17:21:53 +03:00
parent 746b66e91e
commit f283894f86

View file

@ -13,10 +13,10 @@ install:
- pip install tox-travis coveralls
before_script:
# we need to download the clamav signature database before the daemon will run
- service clamav-freshclam stop
- freshclam
- service clamav-daemon restart
- service clamav-daemon status
- sudo service clamav-freshclam stop
- sudo freshclam
- sudo service clamav-daemon restart
- sudo service clamav-daemon status
- while ! test -S /var/run/clamav/clamd.ctl; do printf "."; sleep 1; done
# command to run tests
script: