mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
github-runner: fix service not starting
This commit is contained in:
parent
06e1d77068
commit
22cde06f49
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ in
|
||||||
${getExe' pkgs.coreutils "chown"} ${user}:${group} ${escapeShellArg (mkStateDir cfg)}
|
${getExe' pkgs.coreutils "chown"} ${user}:${group} ${escapeShellArg (mkStateDir cfg)}
|
||||||
|
|
||||||
${getExe' pkgs.coreutils "mkdir"} -p ${escapeShellArg (mkLogDir 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)}
|
${getExe' pkgs.coreutils "chown"} ${user}:${group} ${escapeShellArg (mkLogDir cfg)}
|
||||||
|
|
||||||
${optionalString (cfg.workDir == null) ''
|
${optionalString (cfg.workDir == null) ''
|
||||||
|
|
Loading…
Reference in a new issue