incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lalancette <clala...@redhat.com>
Subject [PATCH] Make the Fedora RPM own /var/log/deltacloud-core
Date Tue, 13 Sep 2011 21:14:14 GMT
Not only is this recommended practice in Fedora, it also
means that we can ensure that /var/log/deltacloud-core is
owned by nobody:nobody.  This is important since the Fedora
initscript launches deltacloudd as nobody:nobody.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
---
 server/support/fedora/deltacloud-core.spec |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/server/support/fedora/deltacloud-core.spec b/server/support/fedora/deltacloud-core.spec
index 5f5f8d7..6a70887 100644
--- a/server/support/fedora/deltacloud-core.spec
+++ b/server/support/fedora/deltacloud-core.spec
@@ -210,6 +210,8 @@ rm -rf %{buildroot}%{app_root}/config/drivers/azure.yaml
 rm -rf %{buildroot}%{app_root}/support/fedora
 rdoc --op %{buildroot}%{_defaultdocdir}/%{name}
 
+mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
+
 %install condor
 install -m 0655 %{buildroot}%{app_root}/support/condor/config/condor-cloud \
   %{buildroot}%{_sysconfdir}/sysconfig/condor-cloud
@@ -264,6 +266,7 @@ fi
 %doc %{app_root}/LICENSE
 # MIT
 %{app_root}/public/javascripts
+%dir %attr(0755, nobody, nobody) %{_localstatedir}/log/%{name}
 
 %files doc
 %defattr(-, root, root, -)
-- 
1.7.4.4


Mime
View raw message