X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=trusty%2Fdebian%2Fcinder-common.postinst;h=fbea5f39020a0a8a2e9db78862b77d051c0846cf;hb=refs%2Fchanges%2F20%2F10220%2F3;hp=3fa8dbc1b8082656f3d5cd9bbaa1a232ca781050;hpb=eff5d7b1796a0f3b15c69cbf47b9707687c8e48a;p=openstack-build%2Fcinder-build.git diff --git a/trusty/debian/cinder-common.postinst b/trusty/debian/cinder-common.postinst index 3fa8dbc1b..fbea5f390 100644 --- a/trusty/debian/cinder-common.postinst +++ b/trusty/debian/cinder-common.postinst @@ -79,14 +79,11 @@ if [ "$1" = "configure" ]; then oslo-config-generator \ --namespace oslo_concurrency --namespace oslo_db \ --namespace oslo_messaging --namespace policy \ - --namespace keystonemiddleware.auth_token >> /etc/cinder/cinder.conf.sample + --namespace keystonemiddleware.auth_token \ + | sed '/^\[DEFAULT/d' >> /etc/cinder/cinder.conf.sample if [ "$?" -ne 0 ]; then - echo "cinder configuration file generation fails!" - fi - - if [ ! -f "/etc/cinder/cinder.conf" ]; then - cp /etc/cinder/cinder.conf.sample /etc/cinder/cinder.conf + echo "cinder sample configuration file generation fails!" fi if [ -e /var/lib/cinder/cinder.sqlite ]; then