mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
First signs of life with MariaDB.
This commit is contained in:
parent
c137eda4ac
commit
0db5781ff8
4 changed files with 210 additions and 54 deletions
|
@ -2263,7 +2263,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
|||
|
||||
// Rename the file
|
||||
obj.fs.rename(file.path, fpath, function (err) {
|
||||
if (err && (err.code === 'EXDEV') && fs.copyFile) {
|
||||
if (err && (err.code === 'EXDEV')) {
|
||||
// On some Linux, the rename will fail with a "EXDEV" error, do a copy+unlink instead.
|
||||
obj.common.copyFile(file.path, fpath, function (err) {
|
||||
obj.fs.unlink(file.path, function (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue