Make install_server handle one-time admin bootstrap prompt

This commit is contained in:
Jage9
2026-02-24 22:11:10 -05:00
parent bf3bc90f2a
commit 404384416e
3 changed files with 74 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ This creates:
- `/home/bestmidi/chgrid/server/.venv`
- `/home/bestmidi/chgrid/server/config.toml` (if missing)
- `/home/bestmidi/chgrid/server/.env` with `CHGRID_AUTH_SECRET` (if missing)
- On first run only, if no admin exists, it prompts to create one immediately.
Edit `/home/bestmidi/chgrid/server/config.toml`:
- `server.bind_ip = "127.0.0.1"`
@@ -48,6 +49,14 @@ Edit `/home/bestmidi/chgrid/server/config.toml`:
- `storage.state_file = "runtime/items.json"`
- `auth.db_file = "runtime/chatgrid.db"`
If you skip first-run admin creation, run later:
```bash
cd /home/bestmidi/chgrid/server
source .env
.venv/bin/python main.py --config config.toml --bootstrap-admin
```
## 4) Build and publish client
```bash