Commit ea44cfdd by César Galvis

fix: solved issue with restart computer command

parent 2ea67b73
......@@ -34,5 +34,10 @@ Vagrant.configure("2") do |config|
config.vm.provision "shell", path: "src/scripts/ps/ChocolateyInstallPackages.ps1"
## Wireguard Install and setup
config.vm.provision "shell", path: "src/scripts/ps/WireguardInstall.ps1"
## Reboot computer after provisioning
config.trigger.after [:provision] do |t|
t.name = "Reboot after provisioning"
t.run = { :inline => "vagrant reload" }
end
end
......@@ -46,8 +46,4 @@ if ($hostsContent -notcontains $entry) {
Write-Host "Added: $entry"
} else {
Write-Host "The entry already exists"
}
# Restart computer
Write-Host "Restarting computer..."
Restart-Computer
\ No newline at end of file
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment