Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nigel Kukard
IDMS Linux Installer
Commits
e3017acc
Commit
e3017acc
authored
Jun 19, 2019
by
Nigel Kukard
Browse files
Enable sshd if the extra user has sshkeys
parent
1f79726c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/idmslinux_installer/plugins/post_install/users.py
View file @
e3017acc
...
...
@@ -46,6 +46,9 @@ class PostInstallUsers(Plugin):
else
:
# 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
:
ili_state
.
add_enable_service
(
'sshd'
)
def
post_install
(
self
,
ili_state
:
IliState
):
"""Post install task to setup users."""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment