]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-common: explicitly trigger /run/ceph creation 5803/head
authorSage Weil <sage@redhat.com>
Tue, 8 Sep 2015 17:50:52 +0000 (13:50 -0400)
committerSage Weil <sage@redhat.com>
Fri, 11 Sep 2015 15:38:47 +0000 (11:38 -0400)
This doesn't happen magically on debian.

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

index 36410a3b630b64337939c899e0f631deeaaae7ba..719dc7908b95ffaa241e62ed803802fd7b216500 100644 (file)
@@ -85,6 +85,9 @@ case "$1" in
           echo "..done"
        fi
 
+       # create /run/ceph.  fail softly if systemd isn't present or
+       # something.
+       [ -x /bin/systemd-tmpfiles ] && systemd-tmpfiles --create || true
     ;;
     abort-upgrade|abort-remove|abort-deconfigure)
        :