Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unix_machine files_different? fails on solaris #569

Open
steversmith opened this issue Mar 21, 2017 · 0 comments
Open

unix_machine files_different? fails on solaris #569

steversmith opened this issue Mar 21, 2017 · 0 comments

Comments

@steversmith
Copy link
Contributor

Summary:

When using a solaris based box, I get the following error:

RuntimeError: Error: command 'md5 -r /etc/chef/client.rb' exited with code 1

This is traced to the unix_machine.rb files_different? method, which attempts to use md5sum -b #{path}, followed by md5 -r #{path}, if the md5sum command fails.

Suggested fix:

A fix for solaris is to include using digest -a md5 #{path} if both md5sum and md5 commands fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant