diff options
Diffstat (limited to 'manifests/service')
-rw-r--r-- | manifests/service/env.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/service/env.pp b/manifests/service/env.pp index 2699533..e895820 100644 --- a/manifests/service/env.pp +++ b/manifests/service/env.pp @@ -4,7 +4,7 @@ define runit::service::env( $service, $value, $ensure = present ) { $envdir = "/etc/sv/${service}/env" # create this directory if at least one environment variable is defined - if !defined( File["/etc/sv/${service}/env"] ) { + if $ensure == present and !defined( File["/etc/sv/${service}/env"] ) { file{ "/etc/sv/${service}/env": ensure => directory, # all unmanaged envs. will be removed |