]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 28 Feb 2024 17:55:22 +0000 (17:55 +0000)
commitb0f13e2b3ab30d56bb4cca6b8605162ff6bfe08c
tree8cb13733f23eea39549f34c3032a403e61847998
parent84f393dbd806bb679bc85d1152c9ec041280565c
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)
(cherry picked from commit 776a089b09c70ee45f2c84eec05279d6826abf15)
debian/ceph-common.postinst