Abs paths for all commands
This commit is contained in:
parent
627718fd34
commit
71fc425176
6 changed files with 20 additions and 20 deletions
|
@ -6,10 +6,10 @@ define apt::force(
|
|||
$version = false
|
||||
) {
|
||||
|
||||
exec { "aptitude -y -t ${release} install ${name}":
|
||||
exec { "/usr/bin/aptitude -y -t ${release} install ${name}":
|
||||
unless => $version ? {
|
||||
false => "dpkg -l | grep ${name}",
|
||||
default => "dpkg -l | grep ${name} | grep ${version}"
|
||||
false => "/usr/bin/dpkg -l | grep ${name}",
|
||||
default => "/usr/bin/dpkg -l | grep ${name} | grep ${version}"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class apt {
|
||||
$root = '/etc/apt'
|
||||
$provider = 'apt-get'
|
||||
$provider = '/usr/bin/apt-get'
|
||||
|
||||
file { "sources.list":
|
||||
name => "${root}/sources.list",
|
||||
|
|
|
@ -41,8 +41,8 @@ define apt::source(
|
|||
}
|
||||
|
||||
if $key != false {
|
||||
exec { "apt-key adv --keyserver ${key_server} --recv-keys ${key}":
|
||||
unless => "apt-key list | grep ${key}",
|
||||
exec { "/usr/bin/apt-key adv --keyserver ${key_server} --recv-keys ${key}":
|
||||
unless => "/usr/bin/apt-key list | grep ${key}",
|
||||
before => File["${name}.list"],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue