further chattr "fixes"
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 9 Feb 2004 22:55:00 +0000 (22:55 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 9 Feb 2004 22:55:00 +0000 (22:55 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@843 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver-copy
util-vserver/src/vbuild.cc

index c880699..a64f622 100755 (executable)
@@ -298,6 +298,11 @@ if $stopstart; then
        $SBINDIR/vserver $vserver stop
 fi
 
+test "$dhost" || {
+    mkdir -p -m755 $target
+    chattr -t $target
+}
+
 info "Syncing directories"
 # trailing slashes very important in the rsync!
 if ! rsync -avxz $rsflag $shcmd $vroot/ $dhost$colon$target/; then
index 1ad79a9..d04e911 100644 (file)
@@ -254,6 +254,7 @@ int main (int argc, char *argv[])
                // Now, we do a recursive copy of refserv into newserv
                umask (0);
                mkdir (newserv.c_str(),0755);
+               setext2flag(newserv.c_str(), false, 0);
                // Check if it is on the same volume
                struct stat refst,newst;
                if (vutil_lstat(refserv,refst)!=-1