Commit 2a41fca
committed
fix(brew): handle root-owned config dir from sudo installs
- Make all post-install setup steps non-fatal using a bestEffort() wrapper
so Homebrew's post_install never aborts on permission errors
- In tryRepairReadonly(), detect root-owned files (uid 0) and emit a
targeted message with the actual username instead of falling through
to the generic warning
- Add ownership detection and repair to `sentry cli fix`:
- Checks config dir / DB / WAL / SHM file ownership
- When run as root (sudo sentry cli fix), performs chown to transfer
ownership back to the real user (inferred from SUDO_USER env var)
- When not root, prints the exact sudo chown command to run1 parent 14490e7 commit 2a41fca
File tree
7 files changed
+794
-75
lines changed- src
- commands/cli
- lib
- test/commands/cli
7 files changed
+794
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
| |||
0 commit comments