From 16f2f22c4bcc2c6d01c1e76cbd395ce01240130f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Defortis?= Date: Wed, 18 Oct 2017 11:10:08 +0200 Subject: [PATCH] Use creates instead of unless in bind exec mkdir --- manifests/chroot/manual.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/chroot/manual.pp b/manifests/chroot/manual.pp index ba5b0e9..cbc2c84 100644 --- a/manifests/chroot/manual.pp +++ b/manifests/chroot/manual.pp @@ -4,7 +4,7 @@ class bind::chroot::manual( exec { 'mkdir-p-$chroot_dir': command => "mkdir -p ${::bind::defaults::chroot_dir}", path => ['/bin', '/usr/bin'], - unless => "test -d ${::bind::defaults::chroot_dir}", + creates => "${::bind::defaults::chroot_dir}", } # Creating system dirs under chroot dir: file { ["${::bind::defaults::chroot_dir}",