mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 22:25:52 -05:00
Merge pull request #3284 from nzalev/add-awsrds-autobackup-support
Added awsrds config option
This commit is contained in:
commit
6b6d4b95c0
2
db.js
2
db.js
@ -1973,6 +1973,8 @@ module.exports.CreateDB = function (parent, func) {
|
||||
if (props.host) { cmd += ' -h ' + props.host; }
|
||||
if (props.port) { cmd += ' -P ' + props.port; }
|
||||
|
||||
if (props.awsrds) { cmd += ' --single-transaction'; }
|
||||
|
||||
// SSL options different on mariadb/mysql
|
||||
var sslOptions = '';
|
||||
if (obj.databaseType == 4) {
|
||||
|
@ -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.",
|
||||
@ -43,6 +44,7 @@
|
||||
"user": { "type": "string", "description": "MySQL username" },
|
||||
"password": { "type": "string", "description": "MySQL password" },
|
||||
"database": { "type": "string", "default": "meshcentral", "description": "Name of MySQL 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.",
|
||||
|
Loading…
Reference in New Issue
Block a user