Skip to content

Commit

Permalink
Merge pull request #2152 from pauby/fix/apache-httpd-priv-vars
Browse files Browse the repository at this point in the history
(apache-httpd)(#2151) Replace private variables
  • Loading branch information
Windos committed Feb 22, 2023
2 parents 4c02716 + 905c368 commit 92a9b85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion automatic/apache-httpd/apache-httpd.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Example: `choco install apache-httpd --params '"/installLocation:C:\HTTPD /port:
]]></description>
<tags>apache httpd webserver admin</tags>
<dependencies>
<dependency id="vcredist140" version="14.32.31332" />
<dependency id="chocolatey" version="1.2.0" />
<dependency id="vcredist140" version="14.32.31332" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions automatic/apache-httpd/tools/helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function Assert-TcpPortIsOpen {
}

function Get-ApacheInstallOptions {
$configFile = Join-Path $env:chocolateyPackageFolder 'config.xml'
$configFile = Join-Path -Path (Get-ChocolateyPath -PathType 'PackagePath') -ChildPath 'config.xml'
$config = Import-CliXml $configFile

return $config
Expand Down Expand Up @@ -132,7 +132,7 @@ function Set-ApacheInstallOptions {
ServiceName = $arguments.serviceName
}

$configFile = Join-Path $env:chocolateyPackageFolder 'config.xml'
$configFile = Join-Path -Path (Get-ChocolateyPath -PathType 'PackagePath') -ChildPath 'config.xml'
Export-Clixml -Path $configFile -InputObject $config
}

Expand Down

0 comments on commit 92a9b85

Please sign in to comment.