API container writes trigger files to a shared volume (data/upgrade/), and a systemd path watcher on the host detects them and runs the upgrade scripts. This avoids giving the container Docker socket access. - Add upgrade-check.sh (git fetch + compare + write status.json) - Add upgrade-watcher.sh (systemd bridge, dispatches check/upgrade) - Add systemd path/service units with placeholder substitution - Modify upgrade.sh with --api-mode flag (progress.json + result.json) - Add API upgrade module (service + routes, SUPER_ADMIN only) - Add System tab to Settings page with version info, changelog, progress steps, and upgrade confirmation modal - Add upgrade watcher installation to config.sh wizard - Add data/upgrade/ shared volume to api service in docker-compose Bunker Admin
11 lines
239 B
SYSTEMD
11 lines
239 B
SYSTEMD
[Unit]
|
|
Description=Watch for Changemaker Lite upgrade triggers
|
|
Documentation=https://docs.cmlite.org/docs/admin/services/
|
|
|
|
[Path]
|
|
PathExists=__PROJECT_DIR__/data/upgrade/trigger.json
|
|
MakeDirectory=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|