Skip to content

Commit a217391

Browse files
authored
Debian: Tolerate error in systemd/clamav-daemon.service if dir already exists
1 parent 421ecfa commit a217391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/vst-install-debian.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,8 +1110,8 @@ if [ "$clamd" = 'yes' ]; then
11101110
fi
11111111
chown -R clamav:clamav /var/run/clamav
11121112
if [ -e "/lib/systemd/system/clamav-daemon.service" ]; then
1113-
exec_pre1='ExecStartPre=/bin/mkdir -p /var/run/clamav'
1114-
exec_pre2='ExecStartPre=/bin/chown -R clamav:clamav /var/run/clamav'
1113+
exec_pre1='ExecStartPre=-/bin/mkdir -p /var/run/clamav'
1114+
exec_pre2='ExecStartPre=-/bin/chown -R clamav:clamav /var/run/clamav'
11151115
sed -i "s|\[Service\]/|[Service]\n$exec_pre1\n$exec_pre2|g" \
11161116
/lib/systemd/system/clamav-daemon.service
11171117
systemctl daemon-reload

0 commit comments

Comments
 (0)