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

Allow altering pi account #105

Merged
merged 1 commit into from
Jan 24, 2021
Merged

Allow altering pi account #105

merged 1 commit into from
Jan 24, 2021

Conversation

grantemsley
Copy link
Contributor

Use id to see if the account specified already exists. If it does, skip creating it but still change the password and setup SSH keys.
This allows the module to be used to secure the pi account without having to create a new account.

Tested on one of my builds, and it changed the password and added my SSH keys perfectly. This should only change the behaviour if you specify ADMIN_TOOLKITNAME=pi, which previously would cause the build to just die at the useradd, so it shouldn't affect any existing builds using the module.

Fixes #104

Use id to see if the account specified already exists. If it does, skip creating it but still change the password and setup SSH keys.

This allows the module to be used to secure the pi account without having to create a new account.
@guysoft
Copy link
Owner

guysoft commented Jan 24, 2021

Thanks for contributing!

@guysoft guysoft merged commit 2a9c843 into guysoft:devel Jan 24, 2021
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.

Change default 'pi' password?
2 participants