Skip to content

Commit

Permalink
only try to delete files if they exist
Browse files Browse the repository at this point in the history
  • Loading branch information
podman committed Aug 8, 2013
1 parent 0e0147a commit 48fbac0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cookbooks/nginx/recipes/default.rb
Expand Up @@ -13,9 +13,14 @@
mode 0644
end

execute "remove_default_configurations" do
execute "remove default config" do
command "rm /etc/nginx/servers/sproutvideo.conf"
if { FileTest.exits?("/etc/nginx/servers/sproutvideo.conf") }
end

execute "remove default ssl config" do
command "rm /etc/nginx/servers/sproutvideo.ssl.conf"
if { FileTest.exists?("/etc/nginx/servers/sproutvideo.ssl.conf")}
end

execute "restarting nginx" do
Expand Down

0 comments on commit 48fbac0

Please sign in to comment.