1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-21 22:32:41 +01:00

Fix permissions on Aphlict log

Summary: Currently, the Aphlict server created the log file (if it doesn't exist) but then immediately fails with "Unable to open logfile". It seems that we don't set the permissions correctly.

Test Plan: Deleted log file and was able to start the Aphlict server.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11351
This commit is contained in:
Joshua Spence 2015-01-13 08:22:03 +11:00
parent 3d9dd45635
commit 270a0c54b4

View file

@ -17,7 +17,7 @@ JX.install('AphlictLog', {
var options = {
flags: 'a',
encoding: 'utf8',
mode: 066
mode: 0664,
};
var logfile = fs.createWriteStream(path, options);