Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
windows-vm
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pem
windows-vm
Commits
ea44cfdd
Commit
ea44cfdd
authored
Apr 23, 2025
by
César Galvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: solved issue with restart computer command
parent
2ea67b73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Vagrantfile
Vagrantfile
+5
-0
WindowsSettings.ps1
src/scripts/ps/WindowsSettings.ps1
+2
-6
No files found.
Vagrantfile
View file @
ea44cfdd
...
...
@@ -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
src/scripts/ps/WindowsSettings.ps1
View file @
ea44cfdd
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment