Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothy Frew
Sympl
Commits
029abd8f
Commit
029abd8f
authored
Mar 26, 2020
by
Paul Cammish
Browse files
Be less aggressive with clamav updates
parent
73ae7818
Changes
1
Hide whitespace changes
Inline
Side-by-side
autotest/test.d/01-setup
View file @
029abd8f
...
...
@@ -17,15 +17,16 @@ if [ $( grep -c public_ip /etc/hosts ) == 0 ]; then echo $(sympl-ip) public_ip >
# remove any existing definations
touch
/srv/
$(
hostname
-f
)
/config/antivirus
# Start freshclam to download new definitions, whatever state it's in
systemctl unmask clamav-freshclam
# try a defination update manually with the service stopped
service clamav-freshclam stop
rm
-rf
/run/clamav
freshclam
# Start freshclam to download/update new definitions, whatever state it's in
systemctl unmask clamav-freshclam
service clamav-freshclam start
sleep
3
echo
-n
"I: Waiting for clamav to download databases."
echo
-n
"I: Waiting for clamav to download
/update
databases."
for
i
in
$(
seq
1 100
)
;
do
if
[
-f
"/var/lib/clamav/main.cvd"
-o
-f
"/var/lib/clamav/main.cld"
]
;
then
echo
-n
' 1/3 '
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment