Updates
This commit is contained in:
@@ -192,7 +192,7 @@ const generator = __webpack_require__(3785);
|
||||
if (!newMariaDBUser?.insertId) {
|
||||
throw new Error("Error in adding SQL user");
|
||||
}
|
||||
const execPath = path__WEBPACK_IMPORTED_MODULE_3___default().resolve(__dirname, "../../../shell/mariadb-users");
|
||||
const execPath = path__WEBPACK_IMPORTED_MODULE_3___default().resolve(process.cwd(), "./shell/mariadb-users");
|
||||
const execSQLUserScript = (0,child_process__WEBPACK_IMPORTED_MODULE_4__.execSync)(`node refreshUsersAndGrants.js --userId ${user.id} --username ${username} --host ${sanitizedNewHost}`, {
|
||||
cwd: execPath
|
||||
});
|
||||
@@ -203,6 +203,7 @@ const generator = __webpack_require__(3785);
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
} catch (/** @type {any} */ error) {
|
||||
console.log("Create MariaDB user ERROR:", error.message);
|
||||
_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({
|
||||
component: "/api/acceptUserInvitation/catch-error",
|
||||
message: error.message,
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -176,7 +176,7 @@ const fs = __webpack_require__(7147);
|
||||
activeMariadbUserObject.id,
|
||||
]);
|
||||
const updateSQLUserPassword = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`SET PASSWORD FOR '${username}'@'${sanitizedNewHost}' = PASSWORD('${password}');`);
|
||||
const execPath = path__WEBPACK_IMPORTED_MODULE_4___default().resolve(__dirname, "../../../shell/mariadb-users");
|
||||
const execPath = path__WEBPACK_IMPORTED_MODULE_4___default().resolve(process.cwd(), "./shell/mariadb-users");
|
||||
const execSQLUserScript = (0,child_process__WEBPACK_IMPORTED_MODULE_5__.execSync)(`node refreshUsersAndGrants.js --userId ${user.id} --username ${username} --host ${sanitizedNewHost} --sql-user-id ${activeMariadbUserObject.id}}`, {
|
||||
cwd: execPath
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user