]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rpm/cephadm: move HOMEDIR to /var/lib and make scriptlets idempotent on SUSE
authorNathan Cutler <ncutler@suse.com>
Thu, 12 Dec 2019 13:31:24 +0000 (14:31 +0100)
committerNathan Cutler <ncutler@suse.com>
Mon, 16 Dec 2019 16:03:01 +0000 (17:03 +0100)
commitf05a769e0d9986121cbc1ff432c828e21c3d269a
treed3baef714ca280c25f64adb5e445763f21eec2ab
parentc28876f0084d583de0550b105c2ae45222fd30e8
rpm/cephadm: move HOMEDIR to /var/lib and make scriptlets idempotent on SUSE

Also introduce a cephadm group. Since the cephadm package does not
require ceph-common, the ceph group is not available to be used.

Drop the -r option to useradd, because cephadm does not qualify as a system
user.

Finally, fix the SUSE RPM build. SUSE RPM builds using "osc" implement a check
that compares the cephadm package's "before" and "after" file lists, to enforce
idempotency of the scriptlets. The "userdel cephadm" in the %postun breaks this
check, so omit it from the SUSE RPM builds.

Fixes: https://tracker.ceph.com/issues/43285
Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in