Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed backup recipe

  • Loading branch information...
commit 0025428cef82b7748ec20cb5083dcb9f293835a7 1 parent 9c7f57d
Michael Schiller authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 chef/site-cookbooks/server/recipes/backup.rb
4 chef/site-cookbooks/server/recipes/backup.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.