|
@@ -1110,8 +1110,8 @@ if [ "$clamd" = 'yes' ]; then
|
|
|
fi
|
|
fi
|
|
|
chown -R clamav:clamav /var/run/clamav
|
|
chown -R clamav:clamav /var/run/clamav
|
|
|
if [ -e "/lib/systemd/system/clamav-daemon.service" ]; 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'
|
|
|
|
|
|
|
+ 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" \
|
|
sed -i "s|\[Service\]/|[Service]\n$exec_pre1\n$exec_pre2|g" \
|
|
|
/lib/systemd/system/clamav-daemon.service
|
|
/lib/systemd/system/clamav-daemon.service
|
|
|
systemctl daemon-reload
|
|
systemctl daemon-reload
|