Commit b82af3f
fix: use useradd instead of adduser for cross-version compatibility (#1182)
Replace adduser with useradd for mongodb_exporter user creation.
The --comment option in adduser is not supported in Debian 11,
only in Debian 12+. useradd works consistently across all versions.
Co-authored-by: Jiří Čtvrtka <[email protected]>1 parent df4a5c0 commit b82af3f
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
0 commit comments