]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
debian: recursively adjust permissions of /var/lib/ceph/crash 58458/head
authorMax Carrara <m.carrara@proxmox.com>
Tue, 30 Apr 2024 15:40:27 +0000 (17:40 +0200)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 18 Jul 2024 10:07:16 +0000 (17:07 +0700)
commit6fc96426d0d61aad7480b65ef37e8be1b0f8e7a7
treea75d2d95a99a1e27d59343a26b545a8818d52e44
parentd387ff3f31c7a9d14deee2aeb20303a1a90fa1be
debian: recursively adjust permissions of /var/lib/ceph/crash

A rather recent PR made ceph-crash run as "ceph" user instead of
root [0]. However, because /var/lib/ceph/crash/posted belongs to root,
ceph-crash cannot actually post any crash logs now.

This commit fixes this by recursively updating the permissions of
'/var/lib/ceph/crash', which ensures that all files and directories
used by 'ceph-crash.service' are actually owned by the user configured
for Ceph. This also accounts for existing installations.

Additionally, quote interpolated variables and use curly braces [1].

[0]: #48713
[1]: https://www.shellcheck.net/wiki/SC2086

Fixes: https://tracker.ceph.com/issues/64548
Signed-off-by: Max Carrara <m.carrara@proxmox.com>
(cherry picked from commit 97a1ec4b521f05f924ff51767b9bfda825f717e9)
debian/ceph-base.postinst