aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/vserver.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp
index a8a5a02..5121b7b 100644
--- a/manifests/vserver.pp
+++ b/manifests/vserver.pp
@@ -230,7 +230,8 @@ define vserver($ensure, $context, $in_domain = '', $mark = '', $legacy = false,
# we have to do it for each vserver, see
# http://linux-vserver.org/Secure_chroot_Barrier#Solution:_Secure_Barrier
exec { "setattr --barrier /etc/vservers/${vs_name}/vdir/../":
- unless => "showattr /etc/vservers/${vs_name}/vdir/../ | grep -- '----Bui- /etc/vservers/${vs_name}/vdir/../$'"
+ unless => "showattr /etc/vservers/${vs_name}/vdir/../ | grep -- '----Bui- /etc/vservers/${vs_name}/vdir/../$'"
+ require => Exec["vs_create_${vs_name}"],
}
case $ensure {