Files
nixpkgs/pkgs/by-name/mi/mirakurun/nix-filesystem.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.9 KiB
Diff

diff --git a/processes.json b/processes.json
index b54d404..a40dfab 100644
--- a/processes.json
+++ b/processes.json
@@ -4,10 +4,10 @@
"name": "mirakurun-server",
"script": "lib/server.js",
"node_args" : "-r source-map-support/register",
- "error_file": "/usr/local/var/log/mirakurun.stderr.log",
- "out_file": "/usr/local/var/log/mirakurun.stdout.log",
+ "error_file": "/var/log/mirakurun.stderr.log",
+ "out_file": "/var/log/mirakurun.stdout.log",
"merge_logs": true,
- "pid_file": "/usr/local/var/run/mirakurun.pid",
+ "pid_file": "/var/run/mirakurun.pid",
"exec_mode": "fork",
"autorestart": true,
"env": {
diff --git a/src/Mirakurun/config.ts b/src/Mirakurun/config.ts
index 0b8a1a2..ff02fda 100644
--- a/src/Mirakurun/config.ts
+++ b/src/Mirakurun/config.ts
@@ -146,6 +146,7 @@ export function loadServer(): Server {
fs.copyFileSync("config/server.win32.yml", path);
} else {
fs.copyFileSync("config/server.yml", path);
+ fs.chmodSync(path, 0o644);
}
} catch (e) {
log.fatal("failed to copy server config to `%s`", path);
@@ -300,6 +301,7 @@ export function loadTuners(): Tuner[] {
fs.copyFileSync("config/tuners.win32.yml", path);
} else {
fs.copyFileSync("config/tuners.yml", path);
+ fs.chmodSync(path, 0o644);
}
} catch (e) {
log.fatal("failed to copy tuners config to `%s`", path);
@@ -342,6 +344,7 @@ export function loadChannels(): Channel[] {
fs.copyFileSync("config/channels.win32.yml", path);
} else {
fs.copyFileSync("config/channels.yml", path);
+ fs.chmodSync(path, 0o644);
}
} catch (e) {
log.fatal("failed to copy channels config to `%s`", path);