Commit ea44cfdd by César Galvis

fix: solved issue with restart computer command

parent 2ea67b73
...@@ -34,5 +34,10 @@ Vagrant.configure("2") do |config| ...@@ -34,5 +34,10 @@ Vagrant.configure("2") do |config|
config.vm.provision "shell", path: "src/scripts/ps/ChocolateyInstallPackages.ps1" config.vm.provision "shell", path: "src/scripts/ps/ChocolateyInstallPackages.ps1"
## Wireguard Install and setup ## Wireguard Install and setup
config.vm.provision "shell", path: "src/scripts/ps/WireguardInstall.ps1" 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 end
...@@ -47,7 +47,3 @@ if ($hostsContent -notcontains $entry) { ...@@ -47,7 +47,3 @@ if ($hostsContent -notcontains $entry) {
} else { } else {
Write-Host "The entry already exists" Write-Host "The entry already exists"
} }
# Restart computer
Write-Host "Restarting computer..."
Restart-Computer
\ 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