Skip to content

Commit

Permalink
Merge pull request #873 from mhaskel/custom_config_fix
Browse files Browse the repository at this point in the history
Fix custom_config check for ubuntu precise.
  • Loading branch information
hunner committed Sep 29, 2014
2 parents 19ce43f + 0f2a0b3 commit 5bb6b94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/custom_config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$content = undef,
$priority = '25',
$source = undef,
$verify_command = '/usr/sbin/apachectl -t',
$verify_command = $::apache::params::verify_command,
$verify_config = true,
) {

Expand Down
5 changes: 5 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
# The default error log level
$log_level = 'warn'

if $::operatingsystem == 'Ubuntu' and $::lsbdistrelease == '10.04' {
$verify_command = '/usr/sbin/apache2ctl -t'
} else {
$verify_command = '/usr/sbin/apachectl -t'
}
if $::osfamily == 'RedHat' or $::operatingsystem == 'amazon' {
$user = 'apache'
$group = 'apache'
Expand Down

0 comments on commit 5bb6b94

Please sign in to comment.