summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorartursitarski <artur.sitarski@gmail.com>2016-01-27 01:00:16 +0100
committerartursitarski <artur.sitarski@gmail.com>2016-01-27 01:00:16 +0100
commit7393698d07ec082d9ce82fb02f5e2ce3ae4acf77 (patch)
tree81584c358f1945fca39db1ff00e20fac55eb0983
parentf1e8edaac5e7f003a5d5b01afd5c5bc9775f9494 (diff)
downloadchef-7393698d07ec082d9ce82fb02f5e2ce3ae4acf77.tar.gz
More consistent way
-rw-r--r--lib/chef/provider/user/useradd.rb6
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)