Commit c2e650c
committed
fix(ci): mv legacy submodule paths aside instead of rm -rf
The previous rm -rf failed with permission denied on root-owned files
inside eafw_geomanager_web/ (a leftover from the pre-Apr-1 monorepo
layout that still contained shadow copies of LandScan, ASAP rasters,
return-period tiffs and google-credentials.json).
Renaming a directory only requires write+exec on the *parent*, not on
the directory's children, so mv works regardless of who owns the files
inside. This:
- Preserves the legacy data untouched in <name>.legacy.<timestamp>
- Frees the path for git submodule update --init to clone fresh
- Lets the operator inspect or delete the .legacy backups manually,
using docker root if needed, after a successful deploy
Idempotent: once submodules are checked out, the (! -e $sub/.git)
guard is false and the mv is skipped on subsequent deploys.1 parent cdcb046 commit c2e650c
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | | - | |
332 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
333 | 336 | | |
334 | 337 | | |
335 | | - | |
336 | | - | |
| 338 | + | |
| 339 | + | |
337 | 340 | | |
338 | 341 | | |
339 | 342 | | |
| |||
0 commit comments