diff options
author | artursitarski <artur.sitarski@gmail.com> | 2016-01-27 01:00:16 +0100 |
---|---|---|
committer | artursitarski <artur.sitarski@gmail.com> | 2016-01-27 01:00:16 +0100 |
commit | 7393698d07ec082d9ce82fb02f5e2ce3ae4acf77 (patch) | |
tree | 81584c358f1945fca39db1ff00e20fac55eb0983 /lib/chef/provider | |
parent | f1e8edaac5e7f003a5d5b01afd5c5bc9775f9494 (diff) | |
download | chef-7393698d07ec082d9ce82fb02f5e2ce3ae4acf77.tar.gz |
More consistent way
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/user/useradd.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/chef/provider/user/useradd.rb b/lib/chef/provider/user/useradd.rb index 3a83c0563b..8564d9c59f 100644 --- a/lib/chef/provider/user/useradd.rb +++ b/lib/chef/provider/user/useradd.rb @@ -93,13 +93,11 @@ class Chef end def lock_user - shell_out!("usermod", "-L", new_resource.username) - shell_out!("chsh", "-s", "/bin/false", new_resource.username) + shell_out!("usermod", "-L", "-s", "/bin/false", new_resource.username) end def unlock_user - shell_out!("usermod", "-U", new_resource.username) - shell_out!("chsh", "-s", new_resource.shell, new_resource.username) + shell_out!("usermod", "-U", "-s", new_resource.shell, new_resource.username) end def compile_command(base_command) |