]> git.proxmox.com Git - ceph.git/blame - ceph/debian/ceph-osd.postinst
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / debian / ceph-osd.postinst
CommitLineData
7c673cae
FG
1# vim: set noet ts=8:
2# postinst script for ceph-osd
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9#
10# postinst configure <most-recently-configured-version>
11# old-postinst abort-upgrade <new-version>
12# conflictor's-postinst abort-remove in-favour <package> <new-version>
13# postinst abort-remove
14# deconfigured's-postinst abort-deconfigure in-favour <failed-install-package> <version> [<removing conflicting-package> <version>]
15#
16
17# for details, see http://www.debian.org/doc/debian-policy/ or
18# the debian-policy package
19
20[ -f "/etc/default/ceph" ] && . /etc/default/ceph
21[ -z "$SERVER_USER" ] && SERVER_USER=ceph
22[ -z "$SERVER_GROUP" ] && SERVER_GROUP=ceph
23
24case "$1" in
25 configure)
26 [ -x /sbin/start ] && start ceph-osd-all || :
27 ;;
28 abort-upgrade|abort-remove|abort-deconfigure)
29 :
30 ;;
31
32 *)
33 echo "postinst called with unknown argument \`$1'" >&2
34 exit 1
35 ;;
36esac
37
38# dh_installdeb will replace this with shell code automatically
39# generated by other debhelper scripts.
40
41#DEBHELPER#
42
43exit 0
44
45