&fatal("Can't release $tmp[$#tmp] in cell $cell");
}
-&afs_quota_adj($cell,$asrv,$apart,$quota);
+# Update the quota records.
+&afs_quota_adj($cell,$asrv,$apart,$quota,0);
exit(0);
sub fatal
}
if ($type =~ /ACTIVITY|APROJ|PROJECT/) {
- chown($gid,0,$path) ||
- die "Unable to set volume ownership\n";
+ system("/moira/bin/uchown $path $gid");
+ die "Unable to set volume ownership\n" if ($?);
} elsif ($type =~ /HOMEDIR|UROP/) {
chown($uid,0,$path) ||
die "Unable to set volume ownership\n";
}
if ($type eq "ORG") {
- mkdir("$path/www",0755) || die "Unable to create subdirectories\n";
+ mkdir("$path/www",0755) &&
+ chown(0,0,"$path/www") ||
+ die "Unable to create subdirectories\n";
system("$fs sa $path/www @acl system:anyuser rl -clear") &&
die "Unable to set acl on www directory\n";