Skip to content

Commit

Permalink
Merge pull request #278 from MsysTechnologiesllc/dh/MSYS-1011_set_pat…
Browse files Browse the repository at this point in the history
…h_in_cron

Set path in cron for chef client environment
  • Loading branch information
Vasundhara Jagdale authored Oct 1, 2019
2 parents 6e230d0 + 56e4e77 commit a9e2ce6
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 a9e2ce6

Please sign in to comment.