1 diff --git a/processes.json b/processes.json
2 index b54d404..a40dfab 100644
6 "name": "mirakurun-server",
7 "script": "lib/server.js",
8 "node_args" : "-r source-map-support/register",
9 - "error_file": "/usr/local/var/log/mirakurun.stderr.log",
10 - "out_file": "/usr/local/var/log/mirakurun.stdout.log",
11 + "error_file": "/var/log/mirakurun.stderr.log",
12 + "out_file": "/var/log/mirakurun.stdout.log",
14 - "pid_file": "/usr/local/var/run/mirakurun.pid",
15 + "pid_file": "/var/run/mirakurun.pid",
19 diff --git a/src/Mirakurun/config.ts b/src/Mirakurun/config.ts
20 index 0b8a1a2..ff02fda 100644
21 --- a/src/Mirakurun/config.ts
22 +++ b/src/Mirakurun/config.ts
23 @@ -146,6 +146,7 @@ export function loadServer(): Server {
24 fs.copyFileSync("config/server.win32.yml", path);
26 fs.copyFileSync("config/server.yml", path);
27 + fs.chmodSync(path, 0o644);
30 log.fatal("failed to copy server config to `%s`", path);
31 @@ -300,6 +301,7 @@ export function loadTuners(): Tuner[] {
32 fs.copyFileSync("config/tuners.win32.yml", path);
34 fs.copyFileSync("config/tuners.yml", path);
35 + fs.chmodSync(path, 0o644);
38 log.fatal("failed to copy tuners config to `%s`", path);
39 @@ -342,6 +344,7 @@ export function loadChannels(): Channel[] {
40 fs.copyFileSync("config/channels.win32.yml", path);
42 fs.copyFileSync("config/channels.yml", path);
43 + fs.chmodSync(path, 0o644);
46 log.fatal("failed to copy channels config to `%s`", path);