* Added if [ -r /usr/share/dbconfig-common/dpkg/prerm ] in the prerm.
* Ran wrap-and-sort to clean stuff.
+ * Added creation and chown of /var/lib/cinder/{cache,volumes} after the
+ removal of the -R flag when doing the chown in openstack-pkg-tools.
-- Thomas Goirand <zigo@debian.org> Thu, 23 May 2013 00:08:47 +0800
. /usr/share/dbconfig-common/dpkg/postinst
pkgos_var_user_group cinder
+
+ # we need few folders with cinder:cinder rights.
+ mkdir -p /var/lib/cinder/cache
+ mkdir -p /var/lib/cinder/volumes
+ chown cinder:cinder /var/lib/cinder/cache
+ chown cinder:cinder /var/lib/cinder/volumes
+
pkgos_write_new_conf cinder cinder.conf
pkgos_write_new_conf cinder api-paste.ini
pkgos_dbc_postinst ${CINDER_CONF} DEFAULT sql_connection cinder $@