Skip to content

Commit 20185b4

Browse files
Skip Service Center validation for first installs. (#157)
* Skip Service Center validation for first installs. Remove code that modify permissions, this should be something customers handle. * add missing bracket * Re-add Changing IIS compilation folder
1 parent ba51ca6 commit 20185b4

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

src/Outsystems.SetupTools/Functions/Set-OSServerPerformanceTunning2.ps1

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function Set-OSServerPerformanceTunning2
154154
return
155155
}
156156

157-
if ( $null -eq (Get-OSPlatformVersion -ErrorAction Ignore) ) {
157+
if ($(-not $SkipPlatformCheck) -and ($null -eq (Get-OSPlatformVersion -ErrorAction Ignore))) {
158158

159159
LogMessage -Function $($MyInvocation.Mycommand) -Phase 1 -Stream 3 -Message "Service Center is not installed or not accessible"
160160
WriteNonTerminalError -Message "Service Center is not installed or not accessible"
@@ -366,22 +366,6 @@ function Set-OSServerPerformanceTunning2
366366
}
367367
}
368368

369-
# Grant Modify permissions on the directory to the local IIS_IUSRS group
370-
try
371-
{
372-
$Path_ACL = Get-ACL -Path $IISNetCompilationPath
373-
$Path_ACLRule = New-Object System.Security.AccessControl.FileSystemAccessRule("IIS_IUSRS","Modify","ContainerInherit, ObjectInherit","None","Allow")
374-
$Path_ACL.SetAccessRule($Path_ACLRule)
375-
Set-Acl -Path $IISNetCompilationPath -AclObject $Path_ACL
376-
}
377-
catch
378-
{
379-
LogMessage -Function $($MyInvocation.Mycommand) -Phase 1 -Exception $_.Exception -Stream 3 -Message "Error setting permissions on the IIS Net compilation folder"
380-
WriteNonTerminalError -Message "Error setting permissions on the IIS Net compilation folder"
381-
382-
return
383-
}
384-
385369
LogMessage -Function $($MyInvocation.Mycommand) -Phase 1 -Stream 0 -Message "Changing IIS compilation folder to $IISNetCompilationPath"
386370
try
387371
{

0 commit comments

Comments
 (0)