Browse files

Change shell command to file resource

  • Loading branch information...
1 parent bb35e96 commit 93c973a6cc79878a5f99ec1b66d8ca56e027e715 @bryanwb bryanwb committed with jtimberman Feb 2, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 gecode/recipes/source.rb
View
9 gecode/recipes/source.rb
@@ -50,13 +50,10 @@
execute "ldconfig" do
command "ldconfig"
action :nothing
- not_if { ::File.exists?("/etc/ld.so.conf.d/gecode.conf") }
end
- execute "/etc/ld.so.conf.d/gecode.conf" do
- command "echo '/usr/local/lib/ ' > /etc/ld.so.conf.d/gecode.conf"
- creates "/etc/ld.so.conf.d/gecode.conf"
- action :run
- not_if { ::File.exists?("/etc/ld.so.conf.d/gecode.conf") }
+
+ file "/etc/ld.so.conf.d/gecode.conf" do
+ content "/usr/local/lib "
notifies :run, "execute[ldconfig]"
end
end

0 comments on commit 93c973a

Please sign in to comment.