mdserver-web/plugins/php/lib/openssl.sh

27 lines
726 B
Bash
Raw Permalink Normal View History

2022-06-30 14:37:57 -04:00
#!/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}
2022-07-01 01:46:02 -04:00
if [ ! -f ${SOURCE_ROOT}/openssl-1.1.1p.tar.gz ];then
2022-12-19 22:18:21 -05:00
wget --no-check-certificate -O ${SOURCE_ROOT}/openssl-1.1.1p.tar.gz https://www.openssl.org/source/openssl-1.1.1p.tar.gz
2022-06-30 14:37:57 -04:00
fi
2022-07-01 02:35:31 -04:00
tar -zxvf openssl-1.1.1p.tar.gz
2022-07-01 01:46:02 -04:00
cd openssl-1.1.1p
2022-07-01 02:35:31 -04:00
./config --prefix=${SERVER_ROOT}/openssl zlib-dynamic shared
2022-06-30 14:37:57 -04:00
make && make install
fi