Can you try this patch? It copies (as root) the install files into the
writable temp dir the package was configured with, then chmods them world
readable, then installs them, then removes them. This should get around
any permission problems that the Majordomo user might have.
XYX:sina:~/mj/cvs> cvs diff -u postinstall
Index: postinstall
===================================================================
RCS file: /home/cvs/majordomo/majordomo/postinstall,v
retrieving revision 1.7
diff -u -r1.7 postinstall
--- postinstall 1998/04/25 19:07:59 1.7
+++ postinstall 1998/04/28 19:53:53
@@ -262,7 +262,9 @@
$i = 1;
while (($file, $subj) = each %{$files}) {
print FILE "put GLOBAL /stock/$file $subj <\@$i\n";
- push @args, ("-f", "files/$file");
+ cp("files/$file", "$config->{wtmpdir}/inst.$$.$i");
+ chmod(0644, "$config->{wtmpdir}/inst.$$.$i");
+ push @args, ("-f", "$config->{wtmpdir}/inst.$$.$i");
$i++;
}
close FILE;
@@ -270,6 +272,10 @@
print "@args\n";
system(@args) == 0 or die "Error executing $args[0], $?";
unlink "$config->{wtmpdir}/inst.$$";
+ while ($i > 0) {
+ unlink "$config->{wtmpdir}/inst.$$.$i";
+ $i--;
+ }
}
sub suggest_mta {
This works for me even with all of the files mode 600. If it works for
you, I'll commit it and update the documentation.
- J<
Follow-Ups:
References:
|
|