Updates
This commit is contained in:
+4
-2
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = grabDbSSL;
|
||||
const fs_1 = __importDefault(require("fs"));
|
||||
const grab_dir_names_1 = __importDefault(require("./names/grab-dir-names"));
|
||||
const path_1 = __importDefault(require("path"));
|
||||
/**
|
||||
* # Grab SSL
|
||||
*/
|
||||
@@ -16,10 +17,11 @@ function grabDbSSL() {
|
||||
maxscaleSSLCaCertFileFinal = maxscaleSSLCaCertFile;
|
||||
}
|
||||
catch (error) { }
|
||||
const caFilePath = process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFileFinal;
|
||||
if (!(caFilePath === null || caFilePath === void 0 ? void 0 : caFilePath.match(/./))) {
|
||||
const caProivdedPath = process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFileFinal;
|
||||
if (!(caProivdedPath === null || caProivdedPath === void 0 ? void 0 : caProivdedPath.match(/./))) {
|
||||
return undefined;
|
||||
}
|
||||
const caFilePath = path_1.default.resolve(process.cwd(), caProivdedPath);
|
||||
if (!fs_1.default.existsSync(caFilePath)) {
|
||||
console.log(`${caFilePath} does not exist`);
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user