Commit 08499a0
chore(infra): auto-fix uploads permissions via init-uploads service
A fresh checkout (or a 'sudo rm -rf data/' reset) hits an EACCES on
/directus/uploads because the bind-mounted host directory is
root-owned, while the Directus container runs as a non-root user.
Add a one-shot 'init-uploads' service that runs before the backend and
chmods ./data/uploads to 777, then make the backend depend on it via
'service_completed_successfully'. The matching 'sudo chmod 777 -R
./data/' step in the README is no longer needed.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 59c6a28 commit 08499a0
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
9 | 19 | | |
10 | 20 | | |
11 | 21 | | |
| |||
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| 54 | + | |
| 55 | + | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
| |||
0 commit comments