forked from SecuritySquad/webifier-test-virusscan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfsecure.sh
More file actions
30 lines (27 loc) · 970 Bytes
/
fsecure.sh
File metadata and controls
30 lines (27 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
FSECURE_VERSION="11.10.68"
# Install Requirements
buildDeps='ca-certificates wget rpm'
apt-get update -qq
apt-get install -yq $buildDeps lib32stdc++6 psmisc
echo "===> Install F-Secure..."
cd /tmp
wget -q https://download.f-secure.com/corpro/ls/trial/fsls-${FSECURE_VERSION}-rtm.tar.gz
tar zxvf fsls-${FSECURE_VERSION}-rtm.tar.gz
cd fsls-${FSECURE_VERSION}-rtm
chmod a+x fsls-${FSECURE_VERSION}
./fsls-${FSECURE_VERSION} --auto standalone lang=en --command-line-only
fsav --version
echo "===> Update F-Secure..."
cd /tmp
wget -q http://download.f-secure.com/latest/fsdbupdate9.run
mv fsdbupdate9.run /opt/f-secure/
echo "===> Clean up unnecessary files..."
apt-get purge -y --auto-remove $buildDeps
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/*
# Update F-Secure
echo "===> Update F-Secure Database..." \
&& /etc/init.d/fsaua start \
&& /etc/init.d/fsupdate start \
&& /opt/f-secure/fsav/bin/dbupdate /opt/f-secure/fsdbupdate9.run; exit 0