diff --git a/library/system/user b/library/system/user index b0b2394676..928044a79d 100644 --- a/library/system/user +++ b/library/system/user @@ -398,10 +398,10 @@ class User(object): cmd.append(self.comment) if self.home is not None and info[5] != self.home: - if self.move_home: - cmd.append('-m') cmd.append('-d') cmd.append(self.home) + if self.move_home: + cmd.append('-m') if self.shell is not None and info[6] != self.shell: cmd.append('-s')