diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 6b6f1b8fa..38fe316d7 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -24,6 +24,11 @@ else on host, puppet('module install puppetlabs-stdlib'), {:acceptable_exit_codes => [0, 1]} end + + if fact('osfamily') == 'Debian' + shell('[[ -f /etc/dhcp/dhclient-exit-hooks.d/ntp ]] && rm /etc/dhcp/dhcp-exit-hooks.d/ntp', { :acceptable_exit_codes => [0, 1] }) + shell('[[ -f /etc/dhcp3/dhclient-exit-hooks.d/ntp ]] && rm /etc/dhcp3/dhcp-exit-hooks.d/ntp', { :acceptable_exit_codes => [0, 1] }) + end end end