LXC 106's matrix-deploy hook has not fired since May: Gitea posts to
10.10.10.6:9000, which webhook.service binds to 127.0.0.1. The same hooks
(same secret) are served by webhook-lotus on :9001; the Gitea hook is being
re-pointed there. Before it starts firing again:
- cinny/config.json is merged into the live file instead of copied over it.
The live file carries gifApiKey (injected by lotus_deploy.sh), empty in
git, which a copy would blank. Repo keys win except where the repo value is
empty and the live one isn't. Backup goes to /root/config-backups; the live
file is left untouched on error.
- The script installs its own updates (deploy/lxc106-cinny.sh →
/usr/local/bin/matrix-deploy.sh, after bash -n). Until now repo edits to
it never reached the server.
- A hooks.json change restarts webhook-lotus 15 s after the script exits,
since that listener is the one running this script.
- README: port 9001, the file list, and the history.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA