Use creates instead of unless in bind exec mkdir

This commit is contained in:
Cédric Defortis 2017-10-18 11:10:08 +02:00 committed by Cedric DEFORTIS
parent 5a098b6c2d
commit 16f2f22c4b

View File

@ -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}",