summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-12-07 13:06:10 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-12-07 13:06:22 +1100
commit22cde06f497b97cbab4186292f9fd82487bbfecc (patch)
tree477a36622bcada99249504b1915b1b75543969ee
parent06e1d770687a832a13aa23f37cdebeadc3af89b8 (diff)
github-runner: fix service not starting
-rw-r--r--modules/services/github-runner/service.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/services/github-runner/service.nix b/modules/services/github-runner/service.nix
index 2c2411d..029f863 100644
--- a/modules/services/github-runner/service.nix
+++ b/modules/services/github-runner/service.nix
@@ -59,6 +59,8 @@ in
${getExe' pkgs.coreutils "chown"} ${user}:${group} ${escapeShellArg (mkStateDir cfg)}
${getExe' pkgs.coreutils "mkdir"} -p ${escapeShellArg (mkLogDir cfg)}
+ # launchd will fail to start the service if the outer direction doesn't have sufficient permissions
+ ${getExe' pkgs.coreutils "chmod"} o+rx ${escapeShellArg (mkLogDir { name = ""; })}
${getExe' pkgs.coreutils "chown"} ${user}:${group} ${escapeShellArg (mkLogDir cfg)}
${optionalString (cfg.workDir == null) ''