Commit 693c0dc
authored
Make mongodb_exporter user creation idempotent in postinst script (#1211)
The previous postinst script unconditionally ran `useradd` to create the `mongodb_exporter` system user.
That would fail if the user already existed (e.g., during package upgrade), breaking the post-install process.1 parent 90b5283 commit 693c0dc
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
0 commit comments