Skip to content

Commit

Permalink
updating bootstrap script to automatically install Hops
Browse files Browse the repository at this point in the history
  • Loading branch information
andyopayne committed Oct 31, 2024
1 parent 0d72b28 commit 033c6c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Binary file modified script/production/bootstrap_step-2.zip
Binary file not shown.
15 changes: 15 additions & 0 deletions script/production/bootstrap_step-2/module_iis_configure.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,21 @@ Write-Step "Adding user to RDP user group"
Add-LocalGroupMember -Group "Remote Desktop Users" -Member $localUserName

$localUserPassword = (New-Object PSCredential $localUserName,$securePassword).GetNetworkCredential().Password
$securePassword = ConvertTo-SecureString $localUserPassword -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential($localUserName, $securePassword)

Write-Step "Installing the Hops plugin"

$yakPath = "C:\Program Files\Rhino 8\System\Yak.exe"
$arguments = "install hops"

# Use Start-Process with properly quoted arguments
$process = Start-Process -FilePath $yakPath -ArgumentList $arguments -Credential $credential -WorkingDirectory "C:\Program Files\Rhino 8\System" -PassThru -Wait

if ($process.ExitCode -ne 0) {
Write-Error "Failed to install the Hops plugin. Exit code: $($process.ExitCode)"
exit $process.ExitCode
}

Write-Step "Creating application pool"
CreateAppPool $appPoolName
Expand Down

0 comments on commit 033c6c4

Please sign in to comment.