Reset communicator after updating user groups
This commit is contained in:
parent
c2aa1e207f
commit
cfc3e9e398
|
@ -9,6 +9,7 @@ module VagrantPlugins
|
|||
machine.communicate.tap do |comm|
|
||||
if comm.test("getent group docker") && !comm.test("id -Gn | grep docker")
|
||||
comm.sudo("usermod -a -G docker #{ssh_info[:username]}")
|
||||
comm.reset!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue