mirror of https://github.com/ceph/ceph
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:
commit
85d4bc8c81
|
@ -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)
|
||||
:
|
||||
|
|
Loading…
Reference in New Issue