bdy 1.22.2-dev → 1.22.4-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distTs/package.json +1 -1
- package/distTs/src/agent/system.js +14 -3
- package/package.json +1 -1
package/distTs/package.json
CHANGED
|
@@ -142,8 +142,14 @@ class AgentSystem {
|
|
|
142
142
|
(0, node_fs_1.writeFile)(p, c, { encoding: 'utf-8' }, (err) => {
|
|
143
143
|
if (err)
|
|
144
144
|
reject(err);
|
|
145
|
-
else
|
|
146
|
-
|
|
145
|
+
else {
|
|
146
|
+
(0, node_fs_1.chmod)(p, 0o644, (err) => {
|
|
147
|
+
if (err)
|
|
148
|
+
reject(err);
|
|
149
|
+
else
|
|
150
|
+
resolve();
|
|
151
|
+
});
|
|
152
|
+
}
|
|
147
153
|
});
|
|
148
154
|
});
|
|
149
155
|
}
|
|
@@ -345,7 +351,12 @@ class AgentSystem {
|
|
|
345
351
|
}), {
|
|
346
352
|
encoding: 'utf-8',
|
|
347
353
|
});
|
|
348
|
-
|
|
354
|
+
try {
|
|
355
|
+
(0, node_fs_1.chmodSync)(this.getNewAgentConfigPath(), 0o666);
|
|
356
|
+
}
|
|
357
|
+
catch {
|
|
358
|
+
// do nothing, file can already have proper mode
|
|
359
|
+
}
|
|
349
360
|
return true;
|
|
350
361
|
}
|
|
351
362
|
catch (err) {
|