nixpkgs/pkgs/by-name/mi/mirakurun/nix-filesystem.patch
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08: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);