From b52ef14be50128d1dbe8c623b432a4db90a76c7e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 24 May 2011 12:06:24 +0200 Subject: [PATCH] etc/default/stunnel kills FILES --- modules/stunnel4/manifests/init.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/stunnel4/manifests/init.pp b/modules/stunnel4/manifests/init.pp index af5a22bc3..8b26a061e 100644 --- a/modules/stunnel4/manifests/init.pp +++ b/modules/stunnel4/manifests/init.pp @@ -88,9 +88,14 @@ class stunnel4 { ; "restart_stunnel": command => "true && cd / && env -i /etc/init.d/stunnel4 restart", - require => [ File['/etc/stunnel/stunnel.conf'], Exec['enable_stunnel4'], Package['stunnel4'] ], + require => [ File['/etc/stunnel/stunnel.conf'], Exec['enable_stunnel4'], Exec['kill_file_override'], Package['stunnel4'] ], refreshonly => true, ; + "kill_file_override": + command => "sed -i -e 's/^FILES=/#&/' /etc/default/stunnel4", + onlyif => "grep -q '^FILES=' /etc/default/stunnel4", + require => [ Package['stunnel4'] ], + ; } } -- 2.20.1