Commit fb83b37
fix: handle pre-existing group when creating app user
When a group with the app name already exists (e.g., from a previous
partial install), useradd fails silently because it tries to create
a user private group with the same name. Now checks for existing group
and uses --no-user-group -g flags to reuse it. Also adds check=True
to catch useradd failures.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 030643f commit fb83b37
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
124 | 130 | | |
125 | 131 | | |
126 | 132 | | |
| |||
0 commit comments