This commit is contained in:
parent
f3e7f1637c
commit
a7269db54b
|
|
@ -10,12 +10,12 @@ Write-Host "`n========== SSH УСТАНОВКА ==========`n" -ForegroundColor C
|
||||||
# 1. Скачиваю установщик...
|
# 1. Скачиваю установщик...
|
||||||
Write-Host "1. Скачиваю установщик..." -ForegroundColor Yellow
|
Write-Host "1. Скачиваю установщик..." -ForegroundColor Yellow
|
||||||
New-Item -ItemType Directory -Path $temp -Force | Out-Null
|
New-Item -ItemType Directory -Path $temp -Force | Out-Null
|
||||||
Invoke-WebRequest -Uri "$repo/installers/openssh.msi" -OutFile "$temp\openssh.msi" -ErrorAction Stop
|
Invoke-WebRequest -Uri "$repo/installers/OpenSSH.msi" -OutFile "$temp\OpenSSH.msi" -ErrorAction Stop
|
||||||
Write-Host " ✓ Готово" -ForegroundColor Green
|
Write-Host " ✓ Готово" -ForegroundColor Green
|
||||||
|
|
||||||
# 2. Устанавливаю SSH...
|
# 2. Устанавливаю SSH...
|
||||||
Write-Host "`n2. Устанавливаю SSH..." -ForegroundColor Yellow
|
Write-Host "`n2. Устанавливаю SSH..." -ForegroundColor Yellow
|
||||||
msiexec /i "$temp\openssh.msi" /quiet /norestart
|
msiexec /i "$temp\OpenSSH.msi" /quiet /norestart
|
||||||
Write-Host " ✓ Готово" -ForegroundColor Green
|
Write-Host " ✓ Готово" -ForegroundColor Green
|
||||||
|
|
||||||
# 3. Настраиваю авторизацию...
|
# 3. Настраиваю авторизацию...
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue