Browse files

Merge pull request #12 from jenkinslaw/check-default-site

Check for a default site before disabling it.
  • Loading branch information...
2 parents 50d11cf + 75f7065 commit b446aea3bebf447e1b9363ddc9cdd4cf33705217 @mdxp mdxp committed Feb 12, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 recipes/default.rb
View
1 recipes/default.rb
@@ -108,4 +108,5 @@
execute "disable-default-site" do
command "sudo a2dissite default"
notifies :reload, "service[apache2]", :delayed
+ only_if do File.exists? "#{node['apache']['dir']}/sites-enabled/default" end
end

0 comments on commit b446aea

Please sign in to comment.