incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH] Make the Fedora RPM own /var/log/deltacloud-core
Date Wed, 14 Sep 2011 09:02:00 GMT
On Sep 13, 2011, at 11:14 PM, Chris Lalancette wrote:

> 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.

ACK.

 -- Michal

> 
> 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
> 

----------------------------------------------------------------------
Michal Fojtik, Senior Software Engineer, Red Hat Czech
mfojtik@redhat.com
Deltacloud API: http://deltacloud.org


Mime
View raw message