feat: show update service status in UI

This commit is contained in:
2026-01-15 11:06:54 +01:00
parent 55e452b6a2
commit f513d46d08
22 changed files with 351 additions and 2 deletions

View File

@ -27,6 +27,7 @@ sudo systemctl status skd.service
make install
make up
make down
make restart
make update
make uninstall
```

View File

@ -47,6 +47,7 @@ Hinweis: `jq` ist optional; ohne jq das Token manuell aus der JSON-Antwort lesen
make install # Installation (systemd, env, venv)
make up # Service starten
make down # Service stoppen
make restart # Service neu starten
make update # Code-Update (git reset --hard origin/main)
make healthcheck TOKEN=... # Healthcheck mit Bearer-Token
```

View File

@ -54,6 +54,7 @@ curl -X POST -H "Authorization: Bearer $token" \
### Update-API (lokal)
Alle Update-Endpunkte erfordern Admin-Auth.
- `GET /update/status`
- `GET /update/service-status` (zeigt URL und Erreichbarkeit des Update-Services)
- `POST /update/enroll` (optional Body: `{ "enroll_token": "..." }`)
- `POST /update/check`
- `POST /update/apply` (optional Body: `{ "version": "x.y.z" }`)