Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
clamd.scan not starting because of "Socket file /var/run/clamd.scan/c…
Browse files Browse the repository at this point in the history
…lamd.sock could not be bound: No such file or directory" fix #32
  • Loading branch information
michaelwittig committed Mar 19, 2018
1 parent 6c87c56 commit d9aff6b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -693,12 +693,15 @@ Resources:
command: 'sed -i "s/^FRESHCLAM_DELAY/#FRESHCLAM_DELAY/g" /etc/sysconfig/freshclam'
b_enable_freshclam:
command: 'sed -i "s/^Example/#Example/g" /etc/freshclam.conf'
c_enable_clamd_scan:
c_prepare_local_sopcket:
command: 'mkdir /var/run/clamd.scan && chown clamscan:clamscan /var/run/clamd.scan'
test: '[ ! -d /var/run/clamd.scan ]'
d_enable_clamd_scan:
command: 'sed -i "s/^Example/#Example/g;s/^#LocalSocket /LocalSocket /g" /etc/clamd.d/scan.conf'
d_add_clamdscan_config:
e_add_clamdscan_config:
command: 'ln -s /etc/clamd.d/scan.conf /etc/clamd.conf'
test: '[ ! -f /etc/clamd.conf ]'
e_update_clamav_db:
f_update_clamav_db:
command: freshclam
services:
sysvinit:
Expand Down

0 comments on commit d9aff6b

Please sign in to comment.