]> git-server-git.apps.pok.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)
committerAdam King <adking@redhat.com>
Wed, 28 Feb 2024 16:23:27 +0000 (11:23 -0500)
commit33545ff66bd8721d2a62358541b2ca148042a382
tree899f5d4e0670ceba84368b7cedcbb99cfb22b2c3
parent6e3dddbb5b700648f954f9aa02655c339be960fc
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