fix: restore updater lock ownership and current orchestrator model
This commit is contained in:
@@ -54,7 +54,7 @@ log_dir = "/srv/cc-ci/.cc-ci-logs"
|
|||||||
name = "orchestrator" # tmux session: cc-ci-orchestrator
|
name = "orchestrator" # tmux session: cc-ci-orchestrator
|
||||||
kind = "persistent"
|
kind = "persistent"
|
||||||
backend = "opencode" # operator 2026-09-07 (evening): NO Claude on the cc-ci host — the
|
backend = "opencode" # operator 2026-09-07 (evening): NO Claude on the cc-ci host — the
|
||||||
model = "opencode-go/glm-5.2" # orchestrator is an opencode agent, steered via the opencode web UI
|
model = "opencode-go/glm-5.3-flash" # orchestrator is an opencode agent, steered via the opencode web UI
|
||||||
# (https://oc.ci.commoninternet.net). Claude sessions live on notplants-orchestrator.
|
# (https://oc.ci.commoninternet.net). Claude sessions live on notplants-orchestrator.
|
||||||
resume = false # opencode backend has no --resume equivalent (fresh session each launch)
|
resume = false # opencode backend has no --resume equivalent (fresh session each launch)
|
||||||
watch = "heal" # restart if dead / FATAL / backend-mismatch; never stall-reboot
|
watch = "heal" # restart if dead / FATAL / backend-mismatch; never stall-reboot
|
||||||
|
|||||||
@@ -128,6 +128,9 @@ in
|
|||||||
state() { printf '%s result=%s generation=%s note=%s\n' "$(date -u +%FT%TZ)" "$1" "$2" "$3" > ${stateFile}; chown ${cfg.buildUser} ${stateFile} || true; }
|
state() { printf '%s result=%s generation=%s note=%s\n' "$(date -u +%FT%TZ)" "$1" "$2" "$3" > ${stateFile}; chown ${cfg.buildUser} ${stateFile} || true; }
|
||||||
PREV=$(readlink -f /run/current-system)
|
PREV=$(readlink -f /run/current-system)
|
||||||
LOCK_BAK=${cfg.flakePath}/.flake.lock.auto-update-prev
|
LOCK_BAK=${cfg.flakePath}/.flake.lock.auto-update-prev
|
||||||
|
# A manual root-side flake operation can leave the lock root-owned. The
|
||||||
|
# updater runs nix as buildUser, so restore its write access first.
|
||||||
|
chown ${cfg.buildUser} flake.lock
|
||||||
|
|
||||||
if ! ${busyGate}; then
|
if ! ${busyGate}; then
|
||||||
state skipped "$PREV" busy
|
state skipped "$PREV" busy
|
||||||
|
|||||||
Reference in New Issue
Block a user