Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #145 from linc01n/fix-backup-cron
Browse files Browse the repository at this point in the history
Go to the directory contains backup.properties
  • Loading branch information
linc01n committed Feb 26, 2016
2 parents fd53239 + 6b52031 commit af25d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/backup_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
day settings['backup']['cron']['day']
month settings['backup']['cron']['month']
weekday settings['backup']['cron']['weekday']
command "java -jar #{backup_client_install_path}/#{node['stash']['product']}-backup-client.jar"
command "cd #{backup_client_install_path} && java -jar #{backup_client_install_path}/#{node['stash']['product']}-backup-client.jar"
user node['stash']['user']
action(settings['backup']['cron']['enable'] ? :create : :delete)
end

0 comments on commit af25d55

Please sign in to comment.