[Erp5-report] r14899 - /spec/mandriva/2007.1/erp5-TimerService/erp5-TimerService.spec

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 20 17:25:24 CEST 2007


Author: kazuhiko
Date: Wed Jun 20 17:25:24 2007
New Revision: 14899

URL: http://svn.erp5.org?rev=14899&view=rev
Log:
/etc/zope.conf -> /etc/zope-erp5.conf

Modified:
    spec/mandriva/2007.1/erp5-TimerService/erp5-TimerService.spec

Modified: spec/mandriva/2007.1/erp5-TimerService/erp5-TimerService.spec
URL: http://svn.erp5.org/spec/mandriva/2007.1/erp5-TimerService/erp5-TimerService.spec?rev=14899&r1=14898&r2=14899&view=diff
==============================================================================
--- spec/mandriva/2007.1/erp5-TimerService/erp5-TimerService.spec (original)
+++ spec/mandriva/2007.1/erp5-TimerService/erp5-TimerService.spec Wed Jun 20 17:25:24 2007
@@ -6,6 +6,7 @@
 %define rpm_prefix erp5
 %define zope_home     %{_prefix}/lib/erp5
 %define software_home %{zope_home}/lib/python
+%define configfile    /etc/zope-erp5.conf
 
 Summary:   Timer server for Zope
 Name:      %{rpm_prefix}-%{product}
@@ -51,14 +52,14 @@
 
 %post
 # Configure the zope server to make ot aware of the timerserver
-grep 'timer-server' /etc/zope-erp5.conf 2>&1 > /dev/null || echo "
+grep 'timer-server' %{configfile} 2>&1 > /dev/null || echo "
 
 # The Timer Server replace the ERP5 "zope_tic_loop" script
 %import timerserver
 <timer-server>
   interval 5
 </timer-server>
-" >> /etc/zope.conf
+" >> %{configfile}
 # Restart zope server
 if [ "`%{_prefix}/bin/zopectl-erp5 status`" != "daemon manager not running" ] ; then
   service erp5 restart




More information about the Erp5-report mailing list