ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / mi / mirakurun / nix-filesystem.patch
blobf7f06e2a6dbaa253485a79a65e48d2f9501321d6
1 diff --git a/processes.json b/processes.json
2 index b54d404..a40dfab 100644
3 --- a/processes.json
4 +++ b/processes.json
5 @@ -4,10 +4,10 @@
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",
13 "merge_logs": true,
14 - "pid_file": "/usr/local/var/run/mirakurun.pid",
15 + "pid_file": "/var/run/mirakurun.pid",
16 "exec_mode": "fork",
17 "autorestart": true,
18 "env": {
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);
25 } else {
26 fs.copyFileSync("config/server.yml", path);
27 + fs.chmodSync(path, 0o644);
29 } catch (e) {
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);
33 } else {
34 fs.copyFileSync("config/tuners.yml", path);
35 + fs.chmodSync(path, 0o644);
37 } catch (e) {
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);
41 } else {
42 fs.copyFileSync("config/channels.yml", path);
43 + fs.chmodSync(path, 0o644);
45 } catch (e) {
46 log.fatal("failed to copy channels config to `%s`", path);