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
a4cc7574
Commit
a4cc7574
authored
Mar 26, 2020
by
Paul Cammish
Browse files
Update 01-setup
parent
029abd8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
autotest/test.d/01-setup
View file @
a4cc7574
...
...
@@ -14,13 +14,14 @@ fi
if
[
$(
grep
-c
public_ip /etc/hosts
)
==
0
]
;
then
echo
$(
sympl-ip
)
public_ip
>>
/etc/hosts
;
fi
# remove any existing definations
touch
/srv/
$(
hostname
-f
)
/config/antivirus
# try a defination update manually with the service stopped
# try a definiton update manually with the service stopped
service clamav-freshclam stop
service clamav-daemon stop
freshclam
# Start freshclam to download/update new definitions, whatever state it's in
# enable antivirus in sympl and start the services
touch
/srv/
$(
hostname
-f
)
/config/antivirus
systemctl unmask clamav-freshclam
service clamav-freshclam start
...
...
@@ -55,7 +56,6 @@ done
# Start clamav, whatever state it's currently in
systemctl unmask clamav-daemon
service clamav-daemon stop
service clamav-daemon start
# Enable antispam and antivirus as default, otherwise monit would stop them.
...
...
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