feat: implement MariaDbManagerService and add MariaDB version catalog for automated management

This commit is contained in:
Ümit Tunç
2026-04-03 18:04:25 +03:00
parent 09beec0948
commit 612fd2042b
3 changed files with 76 additions and 3 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ export class MariaDbManagerService {
constructor() {
this.binDir = path.join(configService.getBasePath(), 'bin')
this.catalogPath = path.join(app.getAppPath(), 'src/main/resources/mariadb_catalog.json')
this.catalogPath = path.join(app.getAppPath(), 'resources/mariadb_catalog.json')
if (!fs.existsSync(this.catalogPath)) {
this.catalogPath = path.join(process.cwd(), 'src/main/resources/mariadb_catalog.json')
this.catalogPath = path.join(process.cwd(), 'resources/mariadb_catalog.json')
}
this.init()
}