Commit 8bc8b087 authored by Jean-Francois Rey's avatar Jean-Francois Rey
Browse files

bugfix install gitlab

parent bcf69c5b
......@@ -5,7 +5,9 @@ Write-Output "Downloading Gitlab Runners Last Version"
## download last relase name
$url = ""
$output = 'C:\GitLab-Runner\gitlab-runner.exe'
New-Item -Path 'c:\' -Name "GitLab-Runner" -ItemType "directory"
if ( -Not (Test-Path -Path 'C:\GitLab-Runner')) {
New-Item -Path 'c:\' -Name "GitLab-Runner" -ItemType "directory"
$wcR = New-Object System.Net.WebClient
Write-Output "Downloading $url"
......@@ -18,8 +20,9 @@ $oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentC
$newPath = "$oldpath;C:\GitLab-Runner\\"
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $newPath
if ( -Not Test-Path -Path $env.USERPROFILE\.ssh ) {
New-Item -Path $env.USERPROFILE -NAME ".ssh" -ItemType "directory"
Write-Output "Add gitlab server ssh key identifier to user known_hosts"
if ( -Not (Test-Path -Path $env:USERPROFILE\.ssh) ) {
New-Item -Path $env:USERPROFILE -NAME ".ssh" -ItemType "directory"
ssh-keyscan -t ecdsa -H > ~/.ssh/known_hosts
else {
Supports Markdown
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