summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2015-04-24 02:03:02 +0200
committerSage Weil <sage@redhat.com>2015-08-27 02:34:14 +0200
commit2ba3d61d276f7af421eea0d01765464956b73e8d (patch)
treee3a68f71f1c071f1cc5d24bbbe458936cbcf5519 /debian
parentdebian: create ceph user and group (diff)
downloadceph-2ba3d61d276f7af421eea0d01765464956b73e8d.tar.xz
ceph-2ba3d61d276f7af421eea0d01765464956b73e8d.zip
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 <sage@redhat.com>
Diffstat (limited to 'debian')
-rw-r--r--debian/ceph-common.postinst 7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/ceph-common.postinst b/debian/ceph-common.postinst
index 896dbeb7ccb..8670ddb2931 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)
: