command "passenger-config restart-app #{rails_directory}"
user "root"
group "root"
+ only_if { File.exist?("/usr/bin/passenger-config") }
end
file "#{rails_directory}/public/export/embed.html" do
line.gsub!(/^( *)#quova_password:.*$/, "\\1quova_password: \"#{params[:quova_password]}\"")
end
- if params[:soft_memory_limit]
- line.gsub!(/^( *)#soft_memory_limit:.*$/, "\\1soft_memory_limit: #{params[:soft_memory_limit]}")
- end
-
- if params[:hard_memory_limit]
- line.gsub!(/^( *)#hard_memory_limit:.*$/, "\\1hard_memory_limit: #{params[:hard_memory_limit]}")
- end
-
if params[:gpx_dir]
line.gsub!(/^( *)gpx_trace_dir:.*$/, "\\1gpx_trace_dir: \"#{params[:gpx_dir]}/traces\"")
line.gsub!(/^( *)gpx_image_dir:.*$/, "\\1gpx_image_dir: \"#{params[:gpx_dir]}/images\"")