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
14 lines
318 B
Desktop File
14 lines
318 B
Desktop File
[Unit]
|
|
Description=Changemaker Lite upgrade dispatcher
|
|
Documentation=https://docs.cmlite.org/docs/admin/services/
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=__USER__
|
|
Group=__USER__
|
|
WorkingDirectory=__PROJECT_DIR__
|
|
ExecStart=__PROJECT_DIR__/scripts/upgrade-watcher.sh
|
|
TimeoutStartSec=900
|
|
StandardOutput=journal
|
|
StandardError=journal
|