From: Maksym Yatsenko Date: Fri, 27 Feb 2015 15:32:46 +0000 (+0200) Subject: Remove "cinder-manage db sync" from "cinder-common.postinst" X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8d0b740cfc0d4366706253df91fbde8ff8409787;p=openstack-build%2Fcinder-build.git Remove "cinder-manage db sync" from "cinder-common.postinst" Closes-Bug:#1422350 Change-Id: I0676bb441bf85f4df7ec44ce9e28cc4535f20569 --- diff --git a/debian/cinder-common.postinst b/debian/cinder-common.postinst index 8045dbffb..0c89129eb 100644 --- a/debian/cinder-common.postinst +++ b/debian/cinder-common.postinst @@ -19,12 +19,6 @@ if [ "$1" = "configure" ]; then chmod 0755 /etc/cinder/rootwrap.d chown root:root /etc/cinder/rootwrap.conf - if ! grep -qE "^(sql_)?connection.*" /etc/cinder/cinder.conf || \ - grep -qE "^(sql_)?connection.*sqlite.*" /etc/cinder/cinder.conf - then - su -s /bin/sh -c 'cinder-manage db sync' cinder - fi - if [ -e /var/lib/cinder/cinder.sqlite ]; then chown cinder:cinder /var/lib/cinder/cinder.sqlite chmod 0600 /var/lib/cinder/cinder.sqlite