[openstack-sahara/f21] Create default SQLite database
Ethan Gafford
egafford at fedoraproject.org
Mon Mar 23 17:36:47 UTC 2015
commit 583ecd5aafbc44079a25785ecd54761dbb28707e
Author: Ethan Gafford <egafford at redhat.com>
Date: Mon Mar 23 13:36:17 2015 -0400
Create default SQLite database
* Mon Mar 23 2015 Ethan Gafford <egafford at redhat.com> 2014.1.3-3
- Creates default SQLite database with proper permissions
- Resolves: rhbz#1101516
openstack-sahara.spec | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/openstack-sahara.spec b/openstack-sahara.spec
index 2bbcfa1..1b110f6 100644
--- a/openstack-sahara.spec
+++ b/openstack-sahara.spec
@@ -121,6 +121,7 @@ CONF=%{buildroot}%{_sysconfdir}/sahara/sahara.conf
install -d -m 755 $(dirname $CONF)
install -D -m 640 $SAMPLE $CONF
sed -i -e "s,.*connection=.*,connection=sqlite:///$HOME/sahara-server.db," $CONF
+touch %{buildroot}$HOME/sahara-server.db
# Do not package tests
rm -rf %{buildroot}%{python_sitelib}/sahara/tests
@@ -177,6 +178,7 @@ exit 0
%{_bindir}/_sahara-subprocess
%{_bindir}/sahara-db-manage
%dir %attr(-, %{sahara_user}, %{sahara_group}) %{_sharedstatedir}/sahara
+%config(noreplace) %attr(0700, %{sahara_user}, %{sahara_group}) %{_sharedstatedir}/sahara/sahara-server.db
%dir %attr(-, %{sahara_user}, %{sahara_group}) %{_localstatedir}/log/sahara
# Note: permissions on sahara's home are intentionally 0700
%dir %{_datadir}/sahara
@@ -190,6 +192,10 @@ exit 0
%changelog
+* Mon Mar 23 2015 Ethan Gafford <egafford at redhat.com> 2014.1.3-3
+- Creates default SQLite database with proper permissions
+- Resolves: rhbz#1101516
+
* Mon Mar 23 2015 Ethan Gafford <egafford at redhat.com> 2014.1.3-2
- Resetting dependencies to previous levels
- Removing pre-systemd packaging
More information about the scm-commits
mailing list