Commit e3017acc authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Enable sshd if the extra user has sshkeys

parent 1f79726c
......@@ -46,6 +46,9 @@ class PostInstallUsers(Plugin):
# Add sudo user, not requiring password
ili_state.add_sudo_user(ili_state.user_username, require_password=False)
# If the user has sshkeys defined, we can safely enable sshd
if ili_state.user_sshkeys:
def post_install(self, ili_state: IliState):
"""Post install task to setup users."""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment