mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fixed log.txt permission bits
This commit is contained in:
parent
05259eb7c7
commit
8a33e99aeb
1 changed files with 1 additions and 1 deletions
|
@ -2844,7 +2844,7 @@ function CreateMeshCentralServer(config, args) {
|
|||
const d = new Date();
|
||||
if (obj.xxLogFile == null) {
|
||||
try {
|
||||
obj.xxLogFile = obj.fs.openSync(obj.getConfigFilePath('log.txt'), 'a+', 666);
|
||||
obj.xxLogFile = obj.fs.openSync(obj.getConfigFilePath('log.txt'), 'a+', 0o666);
|
||||
obj.fs.writeSync(obj.xxLogFile, '---- Log start at ' + new Date().toLocaleString() + ' ----\r\n');
|
||||
obj.xxLogDateStr = d.toLocaleDateString();
|
||||
} catch (ex) { }
|
||||
|
|
Loading…
Reference in a new issue