Commit c36fcb0
committed
Make mongodb_exporter user creation idempotent in postinst script
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 68f477a commit c36fcb0
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