]> 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)
committerMatthew Vernon <mvernon@wikimedia.org>
Thu, 22 Feb 2024 10:06:29 +0000 (10:06 +0000)
commit776a089b09c70ee45f2c84eec05279d6826abf15
treefa4996d57b29b7f71d3cee5d79cfaf9e3c909dc2
parenteeaaeeadcdff5fff0732d6f4e89b9d6f7b626c2f
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>
(cherry picked from commit a1a857698cad4f2feeea0b56fd781350e44078b7)
debian/ceph-common.postinst