From 2ba3d61d276f7af421eea0d01765464956b73e8d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 23 Apr 2015 17:03:02 -0700 Subject: [PATCH] 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 --- debian/ceph-common.postinst | 7 +++++++ 1 file changed, 7 insertions(+) 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) : -- 2.47.3