FLAGS typo

This commit is contained in:
Ian Gulliver
2017-09-22 15:34:31 -07:00
parent 79989e6a4e
commit dde17c6d67

View File

@@ -72,7 +72,7 @@ class IconModule(object):
def AddAdminUser(self, user): def AddAdminUser(self, user):
self.ExecChroot('adduser', '--system', '--group', '--disabled-password', '--shell=/bin/bash', user) self.ExecChroot('adduser', '--system', '--group', '--disabled-password', '--shell=/bin/bash', user)
with open(os.path.join(self._chroot_path, 'etc', 'sudoers.d', FLAGS.username), 'w') as fh: with open(os.path.join(self._chroot_path, 'etc', 'sudoers.d', user), 'w') as fh:
fh.write('%s\tALL=(ALL) NOPASSWD: ALL\n' % user) fh.write('%s\tALL=(ALL) NOPASSWD: ALL\n' % user)
def AddUserToGroup(self, user, group): def AddUserToGroup(self, user, group):