mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-12 23:31:02 +00:00
fix(server): refuse unwritable database in maintenance scripts (#2933)
This commit is contained in:
@@ -61,9 +61,11 @@ Use `scripts/migrate-encryption.ts` to re-encrypt the stored secrets listed belo
|
||||
**Docker:**
|
||||
|
||||
```bash
|
||||
docker exec -it -w /app/server trek node --import tsx scripts/migrate-encryption.ts
|
||||
docker exec -it -u node -w /app/server trek node --import tsx scripts/migrate-encryption.ts
|
||||
```
|
||||
|
||||
Run it as `node`; a plain `docker exec` runs as root, which the shipped compose file (`cap_drop: ALL`) stops from writing `/app/data`.
|
||||
|
||||
**Host (run from the `server/` directory):**
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user