Provision systemd auth env file during install
This commit is contained in:
@@ -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)
|
||||
- `/etc/sysconfig/chat-grid` with `CHGRID_AUTH_SECRET` for systemd (created/updated automatically)
|
||||
- On first run only, if no admin exists, it prompts to create one immediately.
|
||||
|
||||
Edit `/home/bestmidi/chgrid/server/config.toml`:
|
||||
@@ -86,6 +87,10 @@ cd /home/bestmidi/chgrid
|
||||
./deploy/scripts/install_service.sh /home/bestmidi/chgrid
|
||||
```
|
||||
|
||||
Notes:
|
||||
- `install_service.sh` creates a systemd drop-in at `/etc/systemd/system/chat-grid.service.d/env.conf`
|
||||
pointing `EnvironmentFile` to `/etc/sysconfig/chat-grid`.
|
||||
|
||||
Logs:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user