Skip to content

Commit

Permalink
exec commands should have full path
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Lorenzi committed May 8, 2017
1 parent 66a478c commit 958920c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -220,20 +220,20 @@

exec { $log_directory:
creates => $log_directory,
command => "mkdir -p ${log_directory}",
command => "/bin/mkdir -p ${log_directory}",
path => $::path
} -> file { $log_directory: }

exec { $pid_directory:
creates => $pid_directory,
command => "mkdir -p ${pid_directory}",
command => "/bin/mkdir -p ${pid_directory}",
path => $::path
} -> file { $pid_directory: }

if $socket_directory != $pid_directory {
exec { $socket_directory:
creates => $socket_directory,
command => "mkdir -p ${socket_directory}",
command => "/bin/mkdir -p ${socket_directory}",
path => $::path
} -> file { $socket_directory: }
}
Expand Down

0 comments on commit 958920c

Please sign in to comment.