reorder usermod options

pull/4420/head
Thoai Nguyen 2014-01-22 15:27:00 -05:00
parent ff8eb5f454
commit 5c4bb5730e
1 changed files with 1 additions and 1 deletions

View File

@ -389,9 +389,9 @@ class User(object):
cmd.append(self.comment) cmd.append(self.comment)
if self.home is not None and info[5] != self.home: if self.home is not None and info[5] != self.home:
cmd.append('-m')
cmd.append('-d') cmd.append('-d')
cmd.append(self.home) cmd.append(self.home)
cmd.append('-m')
if self.shell is not None and info[6] != self.shell: if self.shell is not None and info[6] != self.shell:
cmd.append('-s') cmd.append('-s')