Commit 5c4bb573 by Thoai Nguyen

reorder usermod options

parent ff8eb5f4
......@@ -389,9 +389,9 @@ class User(object):
cmd.append(self.comment)
if self.home is not None and info[5] != self.home:
cmd.append('-m')
cmd.append('-d')
cmd.append(self.home)
cmd.append('-m')
if self.shell is not None and info[6] != self.shell:
cmd.append('-s')
......
Markdown is supported
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