Commit 16e9448
committed
fix(restore): chown wp-content to uid 1000 after docker cp
docker cp copies files owned by root. PHP-FPM in the Minimus image
runs as uid=1000 (wordpress) and cannot write to root-owned directories,
causing plugin/theme updates to fail with 'Could not create directory'.
Fix: after docker cp, exec into the container as root to chown and
chmod the wp-content tree (dirs 755, files 644, owner 1000:1000).
Applied to both remote_restore() and local_restore().1 parent 2d89a00 commit 16e9448
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
| |||
0 commit comments