Added new database rustydb (#6632)

Co-authored-by: SamTv12345 <samtv12345@samtv12345.com>
This commit is contained in:
SamTV12345 2024-09-05 16:06:16 +02:00 committed by GitHub
parent d010d53195
commit d4cbbf18e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 245 additions and 14 deletions

View file

@ -169,11 +169,11 @@ exports.authenticationMethod = 'sso'
/*
* The Type of the database
*/
exports.dbType = 'dirty';
exports.dbType = 'rustydb';
/**
* This setting is passed with dbType to ueberDB to set up the database
*/
exports.dbSettings = {filename: path.join(exports.root, 'var/dirty.db')};
exports.dbSettings = {filename: path.join(exports.root, 'var/rusty.db')};
/**
* The default Text of a new pad
@ -941,6 +941,11 @@ exports.reloadSettings = () => {
logger.warn(`${dirtyWarning} File location: ${exports.dbSettings.filename}`);
}
if (exports.dbType === 'rustydb') {
exports.dbSettings.filename = absolutePaths.makeAbsolute(exports.dbSettings.filename);
logger.warn(`File location: ${exports.dbSettings.filename}`);
}
if (exports.ip === '') {
// using Unix socket for connectivity
logger.warn('The settings file contains an empty string ("") for the "ip" parameter. The ' +