[openstack-glance] Fix DB path in config
Mark McLoughlin
markmc at fedoraproject.org
Tue Sep 6 11:32:21 UTC 2011
commit 88fc07e3d8beb40482c149877d01d3c35c246516
Author: Mark McLoughlin <markmc at redhat.com>
Date: Tue Sep 6 12:30:33 2011 +0100
Fix DB path in config
Apparently, for it to really be interpreted as an absolute path, you
need:
sqlite:////my/absolute/path/db.sqlite
This:
sqlite:///my/absolute/path/db.sqlite
gets interpreted as "db.sqlite" in the current dir.
This isn't a problem in practice because glance-registry gets run in
/var/lib/glance, but if you run it from the command line in a different
dir you see an error.
openstack-glance.spec | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/openstack-glance.spec b/openstack-glance.spec
index cb62527..0376658 100644
--- a/openstack-glance.spec
+++ b/openstack-glance.spec
@@ -88,7 +88,7 @@ This package contains documentation files for glance.
%prep
%setup -q -n glance-%{version}
-sed -i 's|\(sql_connection = sqlite://\)\(/glance.sqlite\)|\1%{_sharedstatedir}/glance\2|' etc/glance-registry.conf
+sed -i 's|\(sql_connection = sqlite:///\)\(glance.sqlite\)|\1%{_sharedstatedir}/glance/\2|' etc/glance-registry.conf
sed -i '/\/usr\/bin\/env python/d' glance/common/config.py glance/registry/db/migrate_repo/manage.py
@@ -204,6 +204,7 @@ fi
- don't make service files executable
- delete unused files
- add BR: python-distutils-extra (#733610)
+- fix DB path in config
* Tue Aug 30 2011 Angus Salkeld <asalkeld at redhat.com> - 2011.3-0.6.d4
- Change from LSB scripts to systemd service files (#732689).
More information about the scm-commits
mailing list