Use creates instead of unless in bind exec mkdir
This commit is contained in:
parent
5a098b6c2d
commit
16f2f22c4b
@ -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}",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user