From: Thomas Goirand Date: Fri, 31 May 2013 09:17:09 +0000 (+0800) Subject: * Added creation and chown of /var/lib/cinder/{cache,volumes} after the X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=55de336385218d16f2a197bc8f089aa20dbabab9;p=openstack-build%2Fcinder-build.git * 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. Rewritten-From: 170f4e8180edb3a002175c679c6bff0512719e9b --- diff --git a/xenial/debian/changelog b/xenial/debian/changelog index 25e3e67b6..1bd7d5f70 100644 --- a/xenial/debian/changelog +++ b/xenial/debian/changelog @@ -2,6 +2,8 @@ cinder (2013.1.1-2) unstable; urgency=low * 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 Thu, 23 May 2013 00:08:47 +0800 diff --git a/xenial/debian/cinder-common.postinst.in b/xenial/debian/cinder-common.postinst.in index 2c6ffff4b..61ae7e12d 100644 --- a/xenial/debian/cinder-common.postinst.in +++ b/xenial/debian/cinder-common.postinst.in @@ -12,6 +12,13 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then . /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 $@