We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfebb3f commit 1709671Copy full SHA for 1709671
install/vst-install-debian.sh
@@ -1045,6 +1045,13 @@ if [ "$clamd" = 'yes' ]; then
1045
mkdir /var/run/clamav
1046
fi
1047
chown -R clamav:clamav /var/run/clamav
1048
+ if [ -f "/etc/systemd/system/multi-user.target.wants/clamav-daemon.service" ]; then
1049
+ file="/etc/systemd/system/multi-user.target.wants/clamav-daemon.service"
1050
+ if [ $( grep -ic "mkdir" $file ) -eq 0 ]; then
1051
+ sed -i "s/\[Service\]/\[Service\]\nExecStartPre = \/bin\/mkdir -p \/var\/run\/clamav\nExecStartPre = \/bin\/chown -R clamav:clamav \/var\/run\/clamav/g" $file
1052
+ fi
1053
1054
+
1055
service clamav-daemon start
1056
check_result $? "clamav-daeom start failed"
1057
0 commit comments