Commit 895d94d9 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

add more path parameters in execs

parent b4688258
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ define apache::conf(
    }
    exec { "a2enconf ${conf_id}":
      command     => "a2enconf ${conf_id}",
      path        => '/usr/sbin',
      refreshonly => true,
      require     => File["/etc/apache2/conf-available/$conf_id"],
      notify      => Exec['apache reload'],
+2 −0
Original line number Diff line number Diff line
@@ -46,9 +46,11 @@ class apache::debian::old {
# Releases jessie and newer

class apache::debian::new {
  # Note: the readlink executable comes from the coreutils package.
  exec { 'a2dissite 000-default.conf':
    command => 'a2dissite 000-default.conf',
    onlyif  => 'readlink /etc/apache2/sites-enabled/000-default.conf',
    path    => '/bin:/usr/sbin',
    require => Package['apache'],
  }

+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ define apache::module($ensure) {
  # Enable or disable the module using a2enmod or a2dismod.
  exec { $cmd:
    command => $cmd,
    path    => '/usr/sbin',
    require => Package['apache'],
    unless  => "[ $condition ]",
    notify  => Exec['apache reload'];