mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Add 2-way auth options to mysqldump
This commit is contained in:
parent
b8c5623041
commit
8179777f73
1 changed files with 4 additions and 0 deletions
4
db.js
4
db.js
|
@ -1621,11 +1621,15 @@ module.exports.CreateDB = function (parent, func) {
|
|||
if (props.ssl) {
|
||||
sslOptions = ' --ssl';
|
||||
if (props.ssl.cacertpath) sslOptions = ' --ssl-verify-server-cert --ssl-ca=' + props.ssl.cacertpath;
|
||||
if (props.ssl.clientcertpath) sslOptions += ' --ssl-cert=' + props.ssl.clientcertpath;
|
||||
if (props.ssl.clientkeypath) sslOptions += ' --ssl-key=' + props.ssl.clientkeypath;
|
||||
}
|
||||
} else {
|
||||
if (props.ssl) {
|
||||
sslOptions = ' --ssl-mode=required';
|
||||
if (props.ssl.cacertpath) sslOptions = ' --ssl-mode=verify_identity --ssl-ca=' + props.ssl.cacertpath;
|
||||
if (props.ssl.clientcertpath) sslOptions += ' --ssl-cert=' + props.ssl.clientcertpath;
|
||||
if (props.ssl.clientkeypath) sslOptions += ' --ssl-key=' + props.ssl.clientkeypath;
|
||||
}
|
||||
}
|
||||
cmd += sslOptions;
|
||||
|
|
Loading…
Reference in a new issue