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

fix: user management on classic snap #218

Merged

Conversation

st3v3nmw
Copy link
Collaborator

@st3v3nmw st3v3nmw commented Feb 23, 2024

After #210 introduced user management on Core, user management on Ubuntu classic broke since the LANDSCAPE_CLIENT_CORE environment variable is hardcoded to 1 regardless of whether the snap is installed on classic or core. This change will rely on the SNAP_SAVE_DATA variable instead since that is only set on Core systems.

Ubuntu classic uses /etc/shadow but Core systems use /var/lib/extrausers/shadow

https://snapcraft.io/docs/environment-variables

@st3v3nmw st3v3nmw force-pushed the fix-user-reporting-on-ubuntu-classic-2 branch from bc79697 to 5ecefff Compare February 23, 2024 12:46
@st3v3nmw st3v3nmw marked this pull request as ready for review February 23, 2024 12:53
@st3v3nmw st3v3nmw force-pushed the fix-user-reporting-on-ubuntu-classic-2 branch from 5ecefff to 948db70 Compare February 23, 2024 12:57
@st3v3nmw st3v3nmw marked this pull request as draft February 23, 2024 17:29
@st3v3nmw st3v3nmw marked this pull request as ready for review February 23, 2024 17:51
Copy link
Contributor

@Perfect5th Perfect5th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@Perfect5th Perfect5th merged commit c249735 into canonical:master Feb 23, 2024
5 checks passed
@st3v3nmw st3v3nmw deleted the fix-user-reporting-on-ubuntu-classic-2 branch February 26, 2024 07:03
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

Successfully merging this pull request may close these issues.

2 participants