]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
debian/ceph-common.postinst: set user directory using adduser
authorKefu Chai <tchaikov@gmail.com>
Wed, 17 Jan 2024 15:36:12 +0000 (23:36 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 3 Feb 2024 14:36:50 +0000 (22:36 +0800)
commita1a857698cad4f2feeea0b56fd781350e44078b7
tree3975ce5cf8a723eda562e243859e063a95a0a234
parent2a30ddccd04b204821f0496856847e8ffc07835d
debian/ceph-common.postinst: set user directory using adduser

now that adduser allows us to set its home directory, we can do
this using adduser instead of using usermod. this change also
silences the warning from lintian
"maintainer-script-lacks-home-in-adduser". lintian complains if
`adduser --system` is called without passing `--home` option.

also, take this opportunity to s/-c/--comment/ in the command line
of `usermod`, for better readability.

Fixes: https://tracker.ceph.com/issues/64069
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
debian/ceph-common.postinst