Skip to content

Commit

Permalink
Merge pull request #644 from mcneel/AndyPayne/SDKEndpoint
Browse files Browse the repository at this point in the history
forot to add granting permissions to the update script
  • Loading branch information
andyopayne committed Feb 2, 2024
2 parents bc9d727 + bca5a39 commit e2f020a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script/production/module_update_compute.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $rhinoComputePath = "$physicalPathRoot\rhino.compute"
$computeGeometryPath = "$physicalPathRoot\compute.geometry"
$rhinoComputeExe = "$rhinoComputePath\rhino.compute.exe"
$computeGeometryExe = "$computeGeometryPath\compute.geometry.exe"
$appPoolName = "RhinoComputeAppPool"
$websiteName = "Rhino.Compute"

#Region funcs
Expand Down Expand Up @@ -94,6 +95,10 @@ if ((Test-Path $physicalPathRoot)) {
Remove-Item "$physicalPathRoot/compute.zip"
}

Write-Step "Granting application pool permissions on compute directories"
cmd /c icacls $rhinoComputePath /grant ("IIS AppPool\$appPoolName" + ':(OI)(CI)F') /t /c /q
cmd /c icacls $computeGeometryPath /grant ("IIS AppPool\$appPoolName"+ ':(OI)(CI)F') /t /c /q

Write-Step "Starting the IIS Service"
net start w3svc
Start-IISSite -Name $websiteName

0 comments on commit e2f020a

Please sign in to comment.