Set the barrier and warn if it could not be set automatically.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 11 Feb 2008 23:41:08 +0000 (23:41 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 11 Feb 2008 23:41:08 +0000 (23:41 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2676 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver-build.functions

index c89c5ad..2f22192 100644 (file)
@@ -203,6 +203,9 @@ exist already; please try to use '--force', or remove them manually."
 
     mkdir -p -m755 "$VDIR"
     $_SETATTR --~barrier "$VDIR"
+    $_SETATTR --barrier "$VDIR"/.. || colwarn $"\
+WARNING: could not set the barrier attribute on '$VDIR/..',
+         please set it manually."
     base._addGeneratedFile "$VDIR"
     
     mkdir -p -m755 "$SETUP_CONFDIR"/apps "$VDIR"/etc