X-Git-Url: https://git.proxmox.com/?p=ceph.git;a=blobdiff_plain;f=ceph%2Fsrc%2Fceph-volume%2Fceph_volume%2Futil%2Fsystem.py;h=b4b7d17c4c946648e17c1548a7f53d961a65b3ba;hp=0ba46d362766b3acb48e83f349f5ebf821912844;hb=28e407b858acd3bddc89f68583571f771bb42e46;hpb=dfcb7b53b2e4fcd2a5af0240d4975adc711ab96e diff --git a/ceph/src/ceph-volume/ceph_volume/util/system.py b/ceph/src/ceph-volume/ceph_volume/util/system.py index 0ba46d362..b4b7d17c4 100644 --- a/ceph/src/ceph-volume/ceph_volume/util/system.py +++ b/ceph/src/ceph-volume/ceph_volume/util/system.py @@ -87,6 +87,7 @@ def chown(path, recursive=True): """ uid, gid = get_ceph_user_ids() if os.path.islink(path): + process.run(['chown', '-h', 'ceph:ceph', path]) path = os.path.realpath(path) if recursive: process.run(['chown', '-R', 'ceph:ceph', path])