Skip to content

Commit

Permalink
Fix proxy_html Module to work on Debian 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Döhring committed Jan 24, 2020
1 parent 90c1367 commit 429dcdb
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions manifests/mod/proxy_html.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,22 @@
'i686' => 'i386',
default => $::hardwaremodel,
}
$loadfiles = $::apache::params::distrelease ? {
'6' => ['/usr/lib/libxml2.so.2'],
'10' => ['/usr/lib/libxml2.so.2'],
default => ["/usr/lib/${gnu_path}-linux-gnu/libxml2.so.2"],
case $::operatingsystem {
'Ubuntu': {
$loadfiles = $::apache::params::distrelease ? {
'10' => ['/usr/lib/libxml2.so.2'],
default => ["/usr/lib/${gnu_path}-linux-gnu/libxml2.so.2"],
}
}
'Debian': {
$loadfiles = $::apache::params::distrelease ? {
'6' => ['/usr/lib/libxml2.so.2'],
default => ["/usr/lib/${gnu_path}-linux-gnu/libxml2.so.2"],
}
}
default: {
$loadfiles = ["/usr/lib/${gnu_path}-linux-gnu/libxml2.so.2"]
}
}
if versioncmp($::apache::apache_version, '2.4') >= 0 {
::apache::mod { 'xml2enc': }
Expand Down

0 comments on commit 429dcdb

Please sign in to comment.