mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Merge pull request #3284 from nzalev/add-awsrds-autobackup-support
Added awsrds config option
This commit is contained in:
commit
6b6d4b95c0
2 changed files with 4 additions and 0 deletions
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.host) { cmd += ' -h ' + props.host; }
|
||||||
if (props.port) { cmd += ' -P ' + props.port; }
|
if (props.port) { cmd += ' -P ' + props.port; }
|
||||||
|
|
||||||
|
if (props.awsrds) { cmd += ' --single-transaction'; }
|
||||||
|
|
||||||
// SSL options different on mariadb/mysql
|
// SSL options different on mariadb/mysql
|
||||||
var sslOptions = '';
|
var sslOptions = '';
|
||||||
if (obj.databaseType == 4) {
|
if (obj.databaseType == 4) {
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
"password": { "type": "string", "description": "MariaDB password" },
|
"password": { "type": "string", "description": "MariaDB password" },
|
||||||
"connectionLimit": { "type": "number", "description": "MariaDB connection limit" },
|
"connectionLimit": { "type": "number", "description": "MariaDB connection limit" },
|
||||||
"database": { "type": "string", "default": "meshcentral", "description": "Name of MariaDB database used" },
|
"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": {
|
"ssl": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "SSL Options. Set to true (boolean) for default options.",
|
"description": "SSL Options. Set to true (boolean) for default options.",
|
||||||
|
@ -43,6 +44,7 @@
|
||||||
"user": { "type": "string", "description": "MySQL username" },
|
"user": { "type": "string", "description": "MySQL username" },
|
||||||
"password": { "type": "string", "description": "MySQL password" },
|
"password": { "type": "string", "description": "MySQL password" },
|
||||||
"database": { "type": "string", "default": "meshcentral", "description": "Name of MySQL database used" },
|
"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": {
|
"ssl": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "SSL Options. Set to true (boolean) for default options.",
|
"description": "SSL Options. Set to true (boolean) for default options.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue