Fix issues with clamav initial activation
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e80d01a8b1
commit
89a731ff9e
2 changed files with 11 additions and 4 deletions
2
PKGBUILD
2
PKGBUILD
|
@ -6,7 +6,7 @@ pkgname=(
|
|||
luzifer-gui
|
||||
luzifer-lenovo-gui
|
||||
)
|
||||
pkgver=0.14.1
|
||||
pkgver=0.14.2
|
||||
pkgrel=1
|
||||
pkgdesc='System configuration for @luzifer systems'
|
||||
arch=(any)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
|
||||
- name: Collect mountpoints for /home
|
||||
command:
|
||||
cmd: bash -ec 'df --output=target | grep ^/home'
|
||||
|
@ -30,6 +29,16 @@
|
|||
owner: root
|
||||
register: clamav_clamonacc_override_conf
|
||||
|
||||
- name: Create quarantine directory
|
||||
file:
|
||||
dest: /root/quarantine
|
||||
state: directory
|
||||
|
||||
- name: Run freshclam to initialize databases
|
||||
command:
|
||||
cmd: freshclam
|
||||
creates: /var/lib/clamav/daily.cvd
|
||||
|
||||
- name: Enable clamav services
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
|
@ -49,5 +58,3 @@
|
|||
- clamav-daemon.service
|
||||
- clamav-clamonacc.service
|
||||
when: clamd_conf.changed or clamav_clamonacc_override_conf.changed and pacman_action != "install"
|
||||
|
||||
...
|
||||
|
|
Loading…
Add table
Reference in a new issue