The container uid/gid is different than the debian uid/gid (because the
container is centos-based and we got a different uid/gid allocation there).
Fixes: https://tracker.ceph.com/issues/49677
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit
b89ffdcae51303f185e1b423a948df353497250f)
fi
if ! dpkg-statoverride --list /var/log/ceph >/dev/null
then
- chown -R $SERVER_USER:$SERVER_GROUP /var/log/ceph
+ # take care not to touch cephadm log subdirs
+ chown $SERVER_USER:$SERVER_GROUP /var/log/ceph
+ chown $SERVER_USER:$SERVER_GROUP /var/log/ceph/*.log* || true
# members of group ceph can log here, but cannot remove
# others' files. non-members cannot read any logs.
chmod u=rwx,g=rwxs,o=t /var/log/ceph