exec{'apt_dist-upgrade'} just requires Exec['apt_updated'] if apt::disable_update if false

This commit is contained in:
nadir 2012-12-19 18:30:29 +01:00
parent 3a473dafd5
commit 37e40416d2

View file

@ -7,7 +7,10 @@ class apt::dist_upgrade {
exec { 'apt_dist-upgrade':
command => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold' dist-upgrade",
refreshonly => true,
require => Exec['apt_updated'],
require => $apt::disable_update ? {
true => undef,
default => Exec['apt_updated'],
}
}
}