Corrected URLS

This commit is contained in:
iadgovuser26 2023-12-04 17:33:55 -05:00
parent 6b7448cb13
commit 29b83cdef7
2 changed files with 10 additions and 4 deletions

View File

@ -34,11 +34,11 @@ Push-Location .\hirs\ | out-null
Write-Host "Reteiving Configuration Files"
wget https://raw.githubusercontent.com/nsacyber/HIRS/v3_issue_645/.ci/docker/compose-acceptance-test.yml -o compose-acceptance-test.yml
Write-Host "Retreiving Trust Stores"
wget https://raw.githubusercontent.com/nsacyber/HIRS/v3_issue_645/.ci/setup/oem_certs.zip
wget https://raw.githubusercontent.com/nsacyber/HIRS/v3_issue_645/.ci/setup/certs/oem_certs.zip -o oem_certs.zip
#Copy-Item -Path ..\projects\github\HIRS\.ci\setup\certs\oem_certs.zip -Destination .
wget https://raw.githubusercontent.com/nsacyber/HIRS/v3_issue_645/scripts/start_hat.ps1
wget https://raw.githubusercontent.com/nsacyber/HIRS/v3_issue_645/scripts/start_hat.ps1 -o start_hat.ps1
#Copy-Item -Path ..\projects\github\HIRS\scripts\start_hat.ps1 -Destination .
wget https://raw.githubusercontent.com/nsacyber/HIRS/v3_issue_645/scripts/remove_hat.ps1
wget https://raw.githubusercontent.com/nsacyber/HIRS/v3_issue_645/scripts/remove_hat.ps1 -o remove_hat.ps1
#Copy-Item -Path ..\projects\github\HIRS\scripts\remove_hat.ps1 -Destination .
Expand-Archive -Path oem_certs.zip
Write-Host "Downloading images (This can take a while)"

View File

@ -11,7 +11,13 @@ if ($Service.Status -ne 'Running') {
} else {
Write-Host "Docker is running, continuing HAT removal..."
}
$CurrntDir = Split-Path -Path (Get-Location) -Leaf
if ($CurrentDir -ne 'hirs') {
Write-Host "Please run this script from the hirs directory"
Write-Host "Exiting without removing the HAT. Hit Any Key to exit"
$Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
Exit;
}
# remove Firewall Rules
Write-Host "Removing HAT FW Rule ACA HTTPS"
netsh advfirewall firewall delete rule name="ACA HTTPS"