summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorKefu Chai <tchaikov@gmail.com>2024-07-08 13:57:38 +0200
committerGitHub <noreply@github.com>2024-07-08 13:57:38 +0200
commit85d4bc8c8154a98faaecc00ac40d3f127f0e1101 (patch)
treeb18780ce9a7c3848f43b0b03f436067d3bd0f609 /debian
parentMerge pull request #58423 from pereman2/scrapper-replayer-argparse (diff)
parentdebian: recursively adjust permissions of /var/lib/ceph/crash (diff)
downloadceph-85d4bc8c8154a98faaecc00ac40d3f127f0e1101.tar.xz
ceph-85d4bc8c8154a98faaecc00ac40d3f127f0e1101.zip
Merge pull request #55917 from Aequitosh/fix-ceph-crash-permissions
debian: recursively adjust permissions of /var/lib/ceph/crash Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com> Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Diffstat (limited to 'debian')
-rw-r--r--debian/ceph-base.postinst6
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/ceph-base.postinst b/debian/ceph-base.postinst
index 3a51b50cbc2..35c88a0921b 100644
--- a/debian/ceph-base.postinst
+++ b/debian/ceph-base.postinst
@@ -34,11 +34,13 @@ case "$1" in
# adjust file and directory permissions
for DIR in /var/lib/ceph/* ; do
- if ! dpkg-statoverride --list $DIR >/dev/null
+ if ! dpkg-statoverride --list "${DIR}" >/dev/null
then
- chown $SERVER_USER:$SERVER_GROUP $DIR
+ chown "${SERVER_USER}:${SERVER_GROUP}" "${DIR}"
fi
done
+
+ chown "${SERVER_USER}:${SERVER_GROUP}" -R /var/lib/ceph/crash/*;
;;
abort-upgrade|abort-remove|abort-deconfigure)
: