-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·40 lines (39 loc) · 769 Bytes
/
configure
File metadata and controls
executable file
·40 lines (39 loc) · 769 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
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/bash
if test -f /usr/bin/socat
then
echo "socat exists"
else
if test -f ./bin/socat/socat
then
cp ./bin/socat/socat /usr/bin/socat
chmod +x /usr/bin/socat
echo "socat doesnot exists but has been copied"
else
apt-get install socat
fi
fi
# if test -f /usr/bin/sqlite3
# then
# echo "sqlite3 exists"
# else
# echo "ERR!"
# echo "try to install sqlite3"
# apt-get install sqlite3
# fi
if test -f /usr/bin/openssl
then
echo "openssl exists"
else
echo "ERR!"
echo "try to install openssl"
apt-get install openssl
fi
if test -f ./data/cert
then
echo "certificate path exits"
else
echo "warning"
echo "try to mkdir ./data/cert"
mkdir ./data/cert
fi
echo "Finished!"