mirror of https://github.com/midoks/mdserver-web
pull/118/head
parent
f1c3f04176
commit
c91f855eef
@ -0,0 +1,27 @@ |
||||
#!/bin/bash |
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
||||
export PATH |
||||
|
||||
curPath=`pwd` |
||||
rootPath=$(dirname "$curPath") |
||||
rootPath=$(dirname "$rootPath") |
||||
rootPath=$(dirname "$rootPath") |
||||
rootPath=$(dirname "$rootPath") |
||||
|
||||
# echo $rootPath |
||||
|
||||
SERVER_ROOT=$rootPath/lib |
||||
SOURCE_ROOT=$rootPath/source/lib |
||||
|
||||
if [ ! -d ${SERVER_ROOT}/openssl10 ];then |
||||
cd ${SOURCE_ROOT} |
||||
if [ ! -f ${SOURCE_ROOT}/openssl-1.0.2q.tar.gz ];then |
||||
wget https://github.com/midoks/mdserver-web/releases/download/init/openssl-1.0.2q.tar.gz -T 20 |
||||
fi |
||||
tar -zxf openssl-1.0.2q.tar.gz |
||||
cd openssl-1.0.2q |
||||
./config --openssldir=${SERVER_ROOT}/openssl10 zlib-dynamic shared |
||||
make && make install |
||||
fi |
||||
|
||||
|
Loading…
Reference in new issue