Permalink
Browse files

fixed backup recipe

  • Loading branch information...
1 parent 9c7f57d commit 0025428cef82b7748ec20cb5083dcb9f293835a7 Michael Schiller committed Sep 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 chef/site-cookbooks/server/recipes/backup.rb
@@ -67,7 +67,7 @@
user node.deployer_user.username
hour "5"
minute "0"
- command "/home/#{node[:deployer_user][:username]}/bin/backup.sh"
- #mailto node.backup.mail.to
+ command "/home/#{node[:deployer_user][:username]}/bin/backup.sh 2>&1 >/dev/null"
+ mailto node.backup.mail.to
only_if do File.exist?("/home/#{node[:deployer_user][:username]}/bin/backup.sh") end
end

0 comments on commit 0025428

Please sign in to comment.