Skip to content

Commit

Permalink
Use full path for executing pam-auth-update
Browse files Browse the repository at this point in the history
On Debian-based distros, pam-auth-update is located at /usr/sbin/pam-auth-update. However, when running chef-client as a cron job, /usr/sbin may not be available on the path, resulting in an error. This affects nodes using the Azure Chef extension, among others.

Addresses Issue #237

Signed-off-by: Sean Nixon <[email protected]>
  • Loading branch information
Sean Nixon committed Feb 25, 2019
1 parent ae6b684 commit 9b531fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/pam.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
end

execute 'update-pam' do
command 'pam-auth-update --package'
command '/usr/sbin/pam-auth-update --package'
end

# do config for rhel-family
Expand Down

0 comments on commit 9b531fd

Please sign in to comment.