This commit is contained in:
Bob Mottram 2017-09-25 17:29:27 +01:00
parent 496aa4c5dc
commit dbe966bb90
1 changed files with 4 additions and 3 deletions

View File

@ -252,11 +252,12 @@ function install_vpn {
cd /etc/openvpn/easy-rsa
. ./vars
./clean-all
if [ ! -f openssl-1.0.0.cnf ]; then
echo $'openssl-1.0.0.cnf was not found'
vpn_openssl_version='1.0.0'
if [ ! -f openssl-${vpn_openssl_version}.cnf ]; then
echo $"openssl-${vpn_openssl_version}.cnf was not found"
exit 7392353
fi
cp openssl-1.0.0.cnf openssl.cnf
cp openssl-${vpn_openssl_version}.cnf openssl.cnf
echo '