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

Path /usr/libexec/ doesn't exist on Ubuntu #31

Closed
jmswick opened this issue Jul 19, 2017 · 3 comments
Closed

Path /usr/libexec/ doesn't exist on Ubuntu #31

jmswick opened this issue Jul 19, 2017 · 3 comments

Comments

@jmswick
Copy link
Contributor

jmswick commented Jul 19, 2017

With the recent merge of #29, I'm getting errors from the module on my Ubuntu test system, due to the path /usr/libexec not existing there, I haven't checked on a Debian system, but I suspect it would be the same there.

Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /usr/libexec/realm_join_with_password20170719-11402-1xrte2l.lock at /etc/puppetlabs/code/environments/realm_patch/modules/realmd/manifests/join/password.pp:21

Using /usr/local/bin might be better, but may not be LSB compliant.

@rsynnest
Copy link
Contributor

rsynnest commented Jul 31, 2017

I'm getting the same error on Ubuntu 16.04
I'll refrain from casting a vote for which directory to use, but it's good to be aware that /usr/libexec is an optional directory according to the Linux FHS, meaning it might not exist and needs to be ensured before placing files there. /usr/local/bin on the other hand is a required directory which exists on all FHS compliant distros so shouldn't need to be ensured.

Both Debian and RedHat follow FHS 2.3

@ms1111
Copy link

ms1111 commented Sep 4, 2017

FWIW, I'm able to use an old commit, 8d1a3ad, on Ubuntu 16.04. This is somewhere between v0.1.3 and v1.0.0.

v1.0.0+ is broken on Ubuntu because of the /usr/libexec thing.

@walkamongus
Copy link
Owner

This is a quick fix if anyone wants to put in a PR, but I'm in the middle of moving so it might be a little while until I can get to it.

walkamongus added a commit that referenced this issue Oct 26, 2017
Ensure /usr/libexec exists (Issue #31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants