postinst is in cinder-volume 1:2014.1-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 | #!/bin/sh -e
if [ "$1" = "configure" ]; then
chown cinder:cinder /var/lib/cinder/volumes
chmod 0750 /var/lib/cinder/volumes
chown root:root /etc/cinder/rootwrap.d/volume.filters
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d tgtd restart > /dev/null 2>&1 || true
else
/etc/init.d/tgtd restart > /dev/null 2>&1 || true
fi
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d cinder-volume restart > /dev/null 2>&1 || true
else
/etc/init.d/cinder-volume restart > /dev/null 2>&1 || true
fi
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/cinder-volume" ] || [ -e "/etc/init/cinder-volume.conf" ]; then
if [ ! -e "/etc/init/cinder-volume.conf" ]; then
update-rc.d cinder-volume defaults >/dev/null
fi
invoke-rc.d cinder-volume start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f cinder-volume remove >/dev/null || exit $?
# End automatically added section
|