Added awsrds config option

This commit is contained in:
Noah Zalev 2021-11-17 17:24:43 -05:00
parent 05ee363a66
commit c5c27820c9
2 changed files with 2 additions and 0 deletions

1
db.js
View File

@ -1976,6 +1976,7 @@ module.exports.CreateDB = function (parent, func) {
// SSL options different on mariadb/mysql
var sslOptions = '';
if (obj.databaseType == 4) {
if (props.awsrds) { cmd += ' --single-transaction'; }
if (props.ssl) {
sslOptions = ' --ssl';
if (props.ssl.cacertpath) sslOptions = ' --ssl-ca=' + props.ssl.cacertpath;

View File

@ -22,6 +22,7 @@
"password": { "type": "string", "description": "MariaDB password" },
"connectionLimit": { "type": "number", "description": "MariaDB connection limit" },
"database": { "type": "string", "default": "meshcentral", "description": "Name of MariaDB database used" },
"awsrds": { "type": "boolean", "default": false, "description": "Set true to resolve LOCK TABLE permissions on AWS RDS." },
"ssl": {
"type": "object",
"description": "SSL Options. Set to true (boolean) for default options.",