You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/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}/openssl ];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}/openssl zlib-dynamic shared
|
|
|
|
# make && make install
|
|
|
|
# fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d ${SERVER_ROOT}/openssl ];then
|
|
|
|
cd ${SOURCE_ROOT}
|
|
|
|
if [ ! -f ${SOURCE_ROOT}/openssl-1.1.1p.tar.gz ];then
|
|
|
|
wget -O ${SOURCE_ROOT}/openssl-1.1.1p.tar.gz https://www.openssl.org/source/openssl-1.1.1p.tar.gz
|
|
|
|
fi
|
|
|
|
tar -zxvf openssl-1.1.1p.tar.gz
|
|
|
|
cd openssl-1.1.1p
|
|
|
|
./config --prefix=${SERVER_ROOT}/openssl zlib-dynamic shared
|
|
|
|
make && make install
|
|
|
|
fi
|
|
|
|
|