]> review.fuel-infra Code Review - openstack-build/cinder-build.git/blob - trusty/debian/cinder-volume.postinst
Update rpm, deb specs according to "requirements.txt"
[openstack-build/cinder-build.git] / trusty / debian / cinder-volume.postinst
1 #!/bin/sh -e
2
3 if [ "$1" = "configure" ]; then
4     chown cinder:cinder /var/lib/cinder/volumes
5     chmod 0750 /var/lib/cinder/volumes
6     chown root:root /etc/cinder/rootwrap.d/volume.filters
7
8         if which invoke-rc.d >/dev/null 2>&1; then
9                 invoke-rc.d tgtd restart > /dev/null 2>&1 || true
10         else
11                 /etc/init.d/tgtd restart > /dev/null 2>&1 || true
12         fi
13
14         if which invoke-rc.d >/dev/null 2>&1; then
15                 invoke-rc.d cinder-volume restart > /dev/null 2>&1 || true
16         else
17                 /etc/init.d/cinder-volume restart > /dev/null 2>&1 || true
18         fi
19
20 fi
21
22 #DEBHELPER#