mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
forgejo: fix runner state dir + tmpfiles
This commit is contained in:
parent
a9cc7b19d8
commit
921b343c2e
1 changed files with 6 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ in
|
|||
# Avoid /var/lib/private so the runner can write its state.
|
||||
systemd.services.gitea-runner-central.serviceConfig = {
|
||||
DynamicUser = lib.mkForce false;
|
||||
StateDirectory = lib.mkForce "gitea-runner/central";
|
||||
StateDirectory = lib.mkForce "gitea-runner";
|
||||
StateDirectoryMode = "0755";
|
||||
};
|
||||
|
||||
|
|
@ -148,5 +148,10 @@ in
|
|||
createHome = true;
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/gitea-runner 0755 gitea-runner gitea-runner -"
|
||||
"d /var/lib/gitea-runner/central 0755 gitea-runner gitea-runner -"
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 2222 ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue