]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: chown ceph:ceph /var/llib/ceph
authorSage Weil <sage@redhat.com>
Fri, 24 Apr 2015 00:03:02 +0000 (17:03 -0700)
committerSage Weil <sage@redhat.com>
Thu, 27 Aug 2015 00:34:14 +0000 (20:34 -0400)
Do not do it recursively--there may already be huge amounts of data
here.

Signed-off-by: Sage Weil <sage@redhat.com>
debian/ceph-common.postinst

index 896dbeb7ccb894982cd8188b869a23bdc1513c34..8670ddb29319dcfece75cb901480d2b3fe34bc9a 100644 (file)
@@ -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)
        :