mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-28 15:48:16 +00:00
Merge pull request #713 from cjmayo/clamav
Make ClamAV cache directory writeable for cache action
This commit is contained in:
commit
ec9386d002
1 changed files with 14 additions and 1 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
|
@ -35,6 +35,10 @@ jobs:
|
|||
sudo apt-get update
|
||||
sudo apt-get install -y clamav-daemon geoip-database libgeoip-dev gettext
|
||||
|
||||
- name: Make ClamAV cache directory writeable for cache action
|
||||
run: |
|
||||
sudo chown -R runner:docker /var/lib/clamav
|
||||
|
||||
- name: ClamAV cache
|
||||
id: cache-clamav
|
||||
uses: actions/cache@v3
|
||||
|
|
@ -42,6 +46,15 @@ jobs:
|
|||
path: /var/lib/clamav
|
||||
key: clamav-v1
|
||||
|
||||
- name: Restore ClamAV directory ownership
|
||||
run: |
|
||||
sudo chown -R clamav:clamav /var/lib/clamav
|
||||
|
||||
- name: Restart ClamAV Daemon
|
||||
if: ${{ steps.cache-clamav.outputs.cache-hit == 'true' }}
|
||||
run: |
|
||||
sudo service clamav-daemon restart
|
||||
|
||||
- name: Download the ClamAV signature database
|
||||
if: ${{ steps.cache-clamav.outputs.cache-hit != 'true' }}
|
||||
run: |
|
||||
|
|
@ -75,7 +88,7 @@ jobs:
|
|||
|
||||
- name: Wait for ClamAV to be ready
|
||||
run: |
|
||||
while ! test -S /var/run/clamav/clamd.ctl; do printf "."; sleep 1; done
|
||||
while ! test -S /run/clamav/clamd.ctl; do printf "."; sleep 1; done
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue