3 # postinst script for ceph-mds
5 # see: dh_installdeb(1)
9 # summary of how this script can be called:
11 # postinst configure <most-recently-configured-version>
12 # old-postinst abort-upgrade <new-version>
13 # conflictor's-postinst abort-remove in-favour <package> <new-version>
14 # postinst abort-remove
15 # deconfigured's-postinst abort-deconfigure in-favour <failed-install-package> <version> [<removing conflicting-package> <version>]
18 # for details, see http://www.debian.org/doc/debian-policy/ or
19 # the debian-policy package
21 [ -f "/etc/default/ceph" ] && . /etc/default/ceph
22 [ -z "$SERVER_USER" ] && SERVER_USER=ceph
23 [ -z "$SERVER_GROUP" ] && SERVER_GROUP=ceph
27 [ -x /sbin/start ] && start ceph-mds-all || :
29 if ! dpkg-statoverride --list /var/lib/ceph/mds >/dev/null
31 chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/mds
34 abort-upgrade|abort-remove|abort-deconfigure)
39 echo "postinst called with unknown argument \`$1'" >&2
44 # dh_installdeb will replace this with shell code automatically
45 # generated by other debhelper scripts.