File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
lib/puppet/provider/templates/webadministration Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ Get-WebSite | % {
88 }
99
1010 $SiteEntityPath = "IIS:\\Sites\${name}"
11- $SitePhysicalPath = Get-ItemProperty -Path $SiteEntityPath -Name PhysicalPath
11+ $SiteEntityPhysicalPath = Get-ItemProperty -Path $SiteEntityPath -Name physicalPath
1212
13- if ($SitePhysicalPath.physicalpath .EndsWith('/')){
14- $null = Set-ItemProperty -Path $SiteEntityPath -Name PhysicalPath -Value $SitePhysicalPath.physicalpath .TrimEnd('/') -Force
13+ if ($SiteEntityPhysicalPath .EndsWith('/')){
14+ $null = Set-ItemProperty -Path $SiteEntityPath -Name PhysicalPath -Value $SiteEntityPhysicalPath .TrimEnd('/') -Force
1515 }
1616
1717 $authenticationTypes = @(
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ Get-WebApplication | % {
44 $name = [string]$pattern.replace($_.Path,'',1)
55 $site = [string]$_.ItemXPath.split("'")[1]
66
7- $SiteEntityPath = "IIS:\\Sites\${site}"
8- $SitePhysicalPath = Get-ItemProperty -Path $SiteEntityPath -Name PhysicalPath
7+ $AppEntityPath = "IIS:\\Sites\${site}\${name }"
8+ $AppEntityPhysicalPath = Get-ItemProperty -Path $AppEntityPath -Name physicalPath
99
10- if ($SitePhysicalPath.physicalpath .EndsWith('/')){
11- $null = Set-ItemProperty -Path $SiteEntityPath -Name PhysicalPath -Value $SitePhysicalPath.physicalpath .TrimEnd('/') -Force
10+ if ($AppEntityPhysicalPath .EndsWith('/')){
11+ $null = Set-ItemProperty -Path $AppEntityPath -Name physicalPath -Value $AppEntityPhysicalPath .TrimEnd('/') -Force
1212 }
1313
1414 $sslFlags = @()
You can’t perform that action at this time.
0 commit comments