fix: clear root-owned opencode scratch files before web start

This commit is contained in:
notplants
2026-11-23 18:28:45 +00:00
parent dc0170a19c
commit 3f48082c6a
+2 -1
View File
@@ -288,7 +288,8 @@ SSHCFG
User = "loops"; Group = "users";
WorkingDirectory = "/srv/cc-ci-orch/cc-ci";
EnvironmentFile = [ "-/srv/cc-ci/cc-ci/.env.public" "/srv/cc-ci/.testenv" ];
ExecStartPre = "${pkgs.coreutils}/bin/rm -rf /tmp/opencode";
# Test tools can leave root-owned files here; only cleanup needs root.
ExecStartPre = "+${pkgs.coreutils}/bin/rm -rf /tmp/opencode";
ExecStart = "/home/loops/.local/bin/opencode serve --hostname 127.0.0.1 --port 4096";
Restart = "on-failure";
RestartSec = "5s";