line.gsub!(/^CGIMAP_LOGFILE=.*;/, "CGIMAP_LOGFILE=#{log_directory}/cgimap.log;")
line.gsub!(/^CGIMAP_MEMCACHE=.*;/, "CGIMAP_MEMCACHE=rails1,rails2,rails3;")
- line.gsub!(/\/home\/rails\/bin\/map/, "#{cgimap_directory}/map")
+ line.gsub!(%r{/home/rails/bin/map}, "#{cgimap_directory}/map")
if database_readonly
line.gsub!(/--daemon/, "--daemon --readonly")
end
else
service "cgimap" do
- action [ :enable, :start ]
+ action [:enable, :start]
supports :restart => true, :reload => true
subscribes :restart, "execute[cgimap-build]"
subscribes :restart, "file[/etc/init.d/cgimap]"