Skip to content

Commit e74ec0b

Browse files
committed
debian/cephadm.postinst: stop using adduser --gecos
--gecos option of adduser is deprecated in debian/bookworm, and will be removed in debian/trixie, see https://manpages.debian.org/bookworm/adduser/adduser.8.en.html. so to be future-proof, let's switch to `usermod --comment`. please note, since we still need to support ubuntu/jammy which is used in our CI, and `adduser` shipped by ubuntu/jammy does not support `--comment` yet, so we cannot use this option. Signed-off-by: Kefu Chai <[email protected]>
1 parent 013eebf commit e74ec0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debian/cephadm.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ case "$1" in
2929
--system \
3030
--disabled-password \
3131
--home /home/cephadm \
32-
--gecos 'cephadm user for mgr/cephadm' \
3332
--shell /bin/bash cephadm 2>/dev/null || true
33+
usermod --comment "cephadm user for mgr/cephadm" cephadm
3434
echo "..done"
3535
fi
3636

0 commit comments

Comments
 (0)