Merge pull request #62 from vector-im/dbkr/ossl_version_const

Make the openssl version a variable
This commit is contained in:
J. Ryan Stinnett 2020-04-03 20:44:58 +01:00 committed by GitHub
commit 1c025de393
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,9 @@ async function getSqlCipher(hakEnv, moduleInfo) {
}
async function getOpenSsl(hakEnv, moduleInfo) {
const openSslDir = path.join(moduleInfo.moduleDotHakDir, 'openssl-1.1.1d');
const osslVersion = '1.1.1f';
const openSslDir = path.join(moduleInfo.moduleDotHakDir, 'openssl-' + osslVersion);
let haveOpenSsl;
try {
@ -104,7 +106,7 @@ async function getOpenSsl(hakEnv, moduleInfo) {
if (haveOpenSsl) return;
const openSslTarball = path.join(moduleInfo.moduleDotHakDir, 'openssl-1.1.1d.tar.gz');
const openSslTarball = path.join(moduleInfo.moduleDotHakDir, 'openssl-' + osslVersion + '.tar.gz');
let haveOpenSslTar;
try {
await fsProm.stat(openSslTarball);
@ -113,7 +115,7 @@ async function getOpenSsl(hakEnv, moduleInfo) {
haveOpenSslTar = false;
}
if (!haveOpenSslTar) {
await needle('get', 'https://www.openssl.org/source/openssl-1.1.1f.tar.gz', {
await needle('get', 'https://www.openssl.org/source/openssl-' + osslVersion + '.tar.gz', {
follow: 10,
output: openSslTarball,
});