This file is indexed.

preinst is in ceph 0.79-0ubuntu1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/sh
set -e
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/rbdmap" ] && [ -L "/etc/init.d/rbdmap" ] \
	   && [ $(readlink -f "/etc/init.d/rbdmap") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/rbdmap"
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/ceph-all" ] && [ -L "/etc/init.d/ceph-all" ] \
	   && [ $(readlink -f "/etc/init.d/ceph-all") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/ceph-all"
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/ceph-create-keys" ] && [ -L "/etc/init.d/ceph-create-keys" ] \
	   && [ $(readlink -f "/etc/init.d/ceph-create-keys") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/ceph-create-keys"
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/ceph-mon-all-starter" ] && [ -L "/etc/init.d/ceph-mon-all-starter" ] \
	   && [ $(readlink -f "/etc/init.d/ceph-mon-all-starter") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/ceph-mon-all-starter"
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/ceph-mon-all" ] && [ -L "/etc/init.d/ceph-mon-all" ] \
	   && [ $(readlink -f "/etc/init.d/ceph-mon-all") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/ceph-mon-all"
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/ceph-mon" ] && [ -L "/etc/init.d/ceph-mon" ] \
	   && [ $(readlink -f "/etc/init.d/ceph-mon") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/ceph-mon"
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/ceph-osd-all-starter" ] && [ -L "/etc/init.d/ceph-osd-all-starter" ] \
	   && [ $(readlink -f "/etc/init.d/ceph-osd-all-starter") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/ceph-osd-all-starter"
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/ceph-osd-all" ] && [ -L "/etc/init.d/ceph-osd-all" ] \
	   && [ $(readlink -f "/etc/init.d/ceph-osd-all") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/ceph-osd-all"
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/ceph-osd" ] && [ -L "/etc/init.d/ceph-osd" ] \
	   && [ $(readlink -f "/etc/init.d/ceph-osd") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/ceph-osd"
	fi
fi
# End automatically added section