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

HOME not set when only "user" is specified #183

Open
axinojolais opened this issue Jan 23, 2023 · 1 comment
Open

HOME not set when only "user" is specified #183

axinojolais opened this issue Jan 23, 2023 · 1 comment
Labels
Feature A feature request Low Priority The opposite of "Priority"

Comments

@axinojolais
Copy link

axinojolais commented Jan 23, 2023

Using pebble on a charm deployed on a 2.9.32 juju controller

My app was misbehaving because HOME wasn't set to /home/foo even though I specified user: "foo" in the pebble plan. I found #129 which sets HOME if both user and group are set, but I would expect HOME to be set as soon as just user is set.

I don't have a reason to not set group, I just don't really care about the group (and I would also assume that just setting the user would also set the group to the user's GID for me).

Anyway, I can work around the issue by setting HOME explicitly (my juju version is too old to have #129), but it would be nice if pebble could do that for me.

Thanks !

@benhoyt
Copy link
Contributor

benhoyt commented Jan 23, 2023

Thanks for this. We can dig in deeper, but at first glance it makes sense to set HOME when only user is specified.

For the record, yes, Juju 2.9.32 is on Pebble commit 32ead04, which doesn't include the change you referenced (or things like #114). The latest 2.9.x version (.39 I think) does. But as you point out, you'd still have to set user and group.

@benhoyt benhoyt added Feature A feature request Low Priority The opposite of "Priority" labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A feature request Low Priority The opposite of "Priority"
Projects
None yet
Development

No branches or pull requests

2 participants