Merge pull request #298 from dylanmtaylor/patch-5
Implement function to set the shell for a user (#291)
This commit is contained in:
commit
47dbda1442
|
|
@ -443,6 +443,12 @@ class Installer():
|
|||
|
||||
o = b''.join(sys_command(f"/usr/bin/arch-chroot {self.target} sh -c \"echo '{user}:{password}' | chpasswd\""))
|
||||
pass
|
||||
|
||||
def user_set_shell(self, user, shell):
|
||||
self.log(f'Setting shell for {user} to {shell}', level=LOG_LEVELS.Info)
|
||||
|
||||
o = b''.join(sys_command(f"/usr/bin/arch-chroot {self.target} sh -c \"chsh -s {shell} {user}\""))
|
||||
pass
|
||||
|
||||
def set_keyboard_language(self, language):
|
||||
if len(language.strip()):
|
||||
|
|
|
|||
Loading…
Reference in New Issue