Skip to content

Commit

Permalink
Merge pull request #1058 from ministryofjustice/TM/TM-584/update-onr-…
Browse files Browse the repository at this point in the history
…bods-setup-for-preprod

used fixed quotes and run as admin
  • Loading branch information
robertsweetman authored Oct 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 2d7a258 + 5683ba7 commit de896cb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions powershell/Scripts/UserDataScripts/OnrBods.ps1
Original file line number Diff line number Diff line change
@@ -513,20 +513,20 @@ features=JavaWebApps1,CMC.Monitoring,LCM,IntegratedTomcat,CMC.AccessLevels,CMC.A
$instanceName = ($Tags | Where-Object { $_.Key -eq "Name" }).Value

if ($instanceName -eq $($Config.cmsMainNode)) {
$ipsResponseFileContentCommon | Out-File -FilePath "$WorkingDirectory\IPS\DATA_UNITS\IPS_win\ips_install.rsp" -Force -Encoding ascii
$ipsResponseFileContentCommon | Out-File -FilePath "$WorkingDirectory\IPS\DATA_UNITS\IPS_win\ips_install.ini" -Force -Encoding ascii
} elseif ($instanceName -eq $($Config.cmsExtendedNode)) {
$ipsResponseFileContentExtendedNode | Out-File -FilePath "$WorkingDirectory\IPS\DATA_UNITS\IPS_win\ips_install.rsp" -Force -Encoding ascii
$ipsResponseFileContentExtendedNode | Out-File -FilePath "$WorkingDirectory\IPS\DATA_UNITS\IPS_win\ips_install.ini" -Force -Encoding ascii
} else {
Write-Output "Unknown node type, cannot create response file"
exit 1
}

$ipsInstallParams = @{
FilePath = "$WorkingDirectory\IPS\DATA_UNITS\\IPS_win\setup.exe"
FilePath = "setup.exe"
WorkingDirectory = "$WorkingDirectory\IPS\DATA_UNITS\IPS_win"
ArgumentList = "-r $WorkingDirectory\IPS\DATA_UNITS\IPS_win\ips_install.rsp"
ArgumentList = '/wait -r D:\Software\IPS\DATA_UNITS\IPS_win\ips_install.ini'
Verb = 'RunAs'
Wait = $true
NoNewWindow = $true
}

# debugging
@@ -604,12 +604,12 @@ selectedlanguagepacks=en
features=DataServicesJobServer,DataServicesAccessServer,DataServicesServer,DataServicesDesigner,DataServicesClient,DataServicesManagementConsole,DataServicesEIMServices,DataServicesMessageClient,DataServicesDataDirect,DataServicesDocumentation
"@

$dataServicesResponsePrimary | Out-File -FilePath "$WorkingDirectory\ds_install.rsp" -Force -Encoding ascii
$dataServicesResponsePrimary | Out-File -FilePath "$WorkingDirectory\ds_install.ini" -Force -Encoding ascii

$dataServicesInstallParams = @{
FilePath = "$WorkingDirectory\$($Config.DataServicesS3File)"
FilePath = "$($Config.DataServicesS3File)"
WorkingDirectory = $WorkingDirectory
ArgumentList = "-r $WorkingDirectory\ds_install.rsp"
ArgumentList = '-q -r D:\Software\ds_install.ini'
Wait = $true
NoNewWindow = $true
}

0 comments on commit de896cb

Please sign in to comment.