diff --git a/library/system/user b/library/system/user index b0b23946765..928044a79d4 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')