Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TM-656: nomis jumpserver fix for photo upload v2 #1098

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions powershell/Scripts/UserDataScripts/NomisClient.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ function Add-Java6NomisWebUtils {
Write-Output " - Downloding zip from S3 bucket"
Read-S3Object -BucketName $Config.JavaS3Bucket -Key ($Config.JavaS3Folder + "/" + $Config.JavaNomisWebUtilsS3Object) -File (".\" + $Config.JavaNomisWebUtilsS3Object) | Out-Null
Write-Output " - Extracing zip"
Expand-Archive -Path (".\" + $Config.JavaNomisWebUtilsS3Object -DestinationPath "C:\Program Files (x86)\Java\jre6\bin" -Force
Expand-Archive -Path (".\" + $Config.JavaNomisWebUtilsS3Object) -DestinationPath "C:\Program Files (x86)\Java\jre6\bin" -Force
New-Item ("C:\Program Files (x86)\Java\jre6\" + $Config.JavaNomisWebUtilsS3Object + ".installed")
}

$newNomisWebUtils = "C:\Program Files (x86)\Java\jre6\bin"
$oldNomisWebUtils = [System.Environment]::GetEnvironmentVariable ("NOMISWEBUTILS")
$oldNomisWebUtils = [System.Environment]::GetEnvironmentVariable("NOMISWEBUTILS")
if ($oldNomisWebUtils -ne $newNomisWebUtils) {
Write-Output "Setting NOMISWEBUTILS environment variable"
[System.Environment]::SetEnvironmentVariable("NOMISWEBUTILS", $newNomisWebUtils, [System.EnvironmentVariableTarget]::Machine)
Expand Down