Fixed log.txt permission bits
Noah Zalev committed
Apr 19, 2021 at 12:57 UTC
8a33e99aeb116e33c0a06568765dad4b3edd619b
1 file changed
+1
-1
meshcentral.js
+1
-1
@@ -2844,7 +2844,7 @@ function CreateMeshCentralServer(config, args) {
2844
const d = new Date();
2845
if (obj.xxLogFile == null) {
2846
try {
2847
- obj.xxLogFile = obj.fs.openSync(obj.getConfigFilePath('log.txt'), 'a+', 666);
2847
+ obj.xxLogFile = obj.fs.openSync(obj.getConfigFilePath('log.txt'), 'a+', 0o666);
2848
obj.fs.writeSync(obj.xxLogFile, '---- Log start at ' + new Date().toLocaleString() + ' ----\r\n');
2849
obj.xxLogDateStr = d.toLocaleDateString();
2850
} catch (ex) { }