mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-13 00:24:31 +08:00
changing script
This commit is contained in:
parent
19da1d4c6f
commit
a9ed7401ca
1 changed files with 7 additions and 5 deletions
|
@ -48,7 +48,7 @@ new-module -name netclient-install -scriptblock {
|
||||||
$loc = Get-Location
|
$loc = Get-Location
|
||||||
Copy-Item -Path "$env:userprofile\Downloads\netclient.exe" -Destination "$loc\netclient.exe"
|
Copy-Item -Path "$env:userprofile\Downloads\netclient.exe" -Destination "$loc\netclient.exe"
|
||||||
}
|
}
|
||||||
$runNum = "one","two"
|
$runNum = "one"
|
||||||
foreach ($run in $runNum) {
|
foreach ($run in $runNum) {
|
||||||
|
|
||||||
$NetArgs = @("join","-t",$token)
|
$NetArgs = @("join","-t",$token)
|
||||||
|
@ -65,11 +65,13 @@ new-module -name netclient-install -scriptblock {
|
||||||
$env:Path += ";C:\ProgramData\Netclient\bin"
|
$env:Path += ";C:\ProgramData\Netclient\bin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($run -eq "one"){
|
#if($run -eq "one"){
|
||||||
Write-Host "re-running setup to confirm all components are installed."
|
# Write-Host "re-running setup to confirm all components are installed."
|
||||||
Start-Sleep -s 1
|
# Start-Sleep -s 1
|
||||||
}
|
#}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Start-Sleep -s 5
|
||||||
Write-Host "'netclient' is installed."
|
Write-Host "'netclient' is installed."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue