Skip to content

Commit

Permalink
set path in cron
Browse files Browse the repository at this point in the history
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
  • Loading branch information
dheerajd-msys committed Sep 19, 2019
1 parent 6e230d0 commit 56e4e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chef/azure/templates/chef-client-cron-create.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cron '<%= name %>' do
minute '<%= "*/#{interval}" %>'
command '/bin/sleep <%= sleep_time %>; chef-client -c <%= bootstrap_directory %>/client.rb -L <%= log_location %>/chef-client.log --pid <%= chef_pid_file %> --once'
command '/bin/sleep <%= sleep_time %>; export PATH=$PATH:/usr/sbin; chef-client -c <%= bootstrap_directory %>/client.rb -L <%= log_location %>/chef-client.log --pid <%= chef_pid_file %> --once'
action :create
end

0 comments on commit 56e4e77

Please sign in to comment.