Commit a4cc7574 authored by Paul Cammish's avatar Paul Cammish
Browse files

Update 01-setup

parent 029abd8f
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment