From: Sage Weil Date: Fri, 24 Apr 2015 00:03:02 +0000 (-0700) Subject: debian: chown ceph:ceph /var/llib/ceph X-Git-Tag: v9.1.0~294^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2ba3d61d276f7af421eea0d01765464956b73e8d;p=ceph.git debian: chown ceph:ceph /var/llib/ceph Do not do it recursively--there may already be huge amounts of data here. Signed-off-by: Sage Weil --- diff --git a/debian/ceph-common.postinst b/debian/ceph-common.postinst index 896dbeb7ccb8..8670ddb29319 100644 --- a/debian/ceph-common.postinst +++ b/debian/ceph-common.postinst @@ -71,6 +71,13 @@ case "$1" in fi fi + # 5. adjust file and directory permissions + if ! dpkg-statoverride --list $SERVER_HOME >/dev/null + then + chown $SERVER_USER:$SERVER_GROUP $SERVER_HOME + chmod u=rwx,g=rx,o= $SERVER_HOME + fi + ;; abort-upgrade|abort-remove|abort-deconfigure) :