[merged] the start/stop fixupds
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Wed, 01 Apr 2015 11:11:17 +0200
changeset 46 92cbdc24b0fd
parent 45 e66e9db8e83a (diff)
parent 41 bd4aaf436891 (current diff)
child 47 9dec3ff4489b
[merged] the start/stop fixupds
--- a/tele-watch.pl	Wed Jul 30 10:42:46 2014 +0200
+++ b/tele-watch.pl	Wed Apr 01 11:11:17 2015 +0200
@@ -57,6 +57,11 @@
 		defined(my $pid = fork()) or die "Can't fork: $!\n";
 		if ($pid == 0) {
 			chdir $dir or die "Can't chdir to $dir: $!\n";
+			for ('public') {
+				mkdir $_;
+				chown $uid, $gid => $_;
+				chmod $mode & 07777 => $_;
+			}
 			system("bzr init");
 			finddepth(sub {
 				chown($uid, $gid, $_);