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>
This commit is contained in:
Kefu Chai 2024-07-08 19:57:38 +08:00 committed by GitHub
commit 85d4bc8c81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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)
: