diff options
author | Maxime “pep” Buquet <pep@collabora.co.uk> | 2017-01-25 21:40:00 +0000 |
---|---|---|
committer | Maxime “pep” Buquet <pep@collabora.co.uk> | 2017-01-25 21:41:09 +0000 |
commit | ab76b3527cf4f657203fc80481f865ef5ec990d3 (patch) | |
tree | 7d61c308f2fe73fbf4189170d600c23a8f60bad8 /lib | |
parent | bb70d7919eba05693bcc4a161503bae52255aa91 (diff) | |
download | chef-ab76b3527cf4f657203fc80481f865ef5ec990d3.tar.gz |
Add -u param to usermod in linux_user resource when using non_unique
Signed-off-by: Maxime “pep” Buquet <pep@collabora.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/user/linux.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/user/linux.rb b/lib/chef/provider/user/linux.rb index 445421ad38..99d20ae117 100644 --- a/lib/chef/provider/user/linux.rb +++ b/lib/chef/provider/user/linux.rb @@ -58,6 +58,7 @@ class Chef def usermod_options opts = [] + opts += [ "-u", new_resource.uid ] if non_unique? if updating_home? if managing_home_dir? opts << "-m" |