Reset communicator after updating user groups

This commit is contained in:
Chris Roberts 2018-11-12 15:32:14 -08:00
parent c2aa1e207f
commit cfc3e9e398
1 changed files with 1 additions and 0 deletions

View File

@ -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