mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
fixed patch syntax for clamav sock
This commit is contained in:
parent
3986d4ec15
commit
52eeff1b6a
1 changed files with 1 additions and 1 deletions
|
@ -1220,7 +1220,7 @@ if [ "$clamd" = 'yes' ]; then
|
|||
if [ -e "/lib/systemd/system/clamav-daemon.service" ]; then
|
||||
exec_pre1='ExecStartPre=-/bin/mkdir -p /var/run/clamav'
|
||||
exec_pre2='ExecStartPre=-/bin/chown -R clamav:clamav /var/run/clamav'
|
||||
sed -i "s|\[Service\]/|[Service]\n$exec_pre1\n$exec_pre2|g" /lib/systemd/system/clamav-daemon.service
|
||||
sed -i "s|\[Service\]|[Service]\n$exec_pre1\n$exec_pre2|g" /lib/systemd/system/clamav-daemon.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
service clamav-daemon start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue