Great Circle Associates Majordomo-Workers
(April 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Majordomo2-alpha1 install problem
From: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Date: 28 Apr 1998 14:59:25 -0500
To: Bryan Fullerton <bryanf @ samurai . com>
Cc: majordomo-workers @ greatcircle . com
In-reply-to: Bryan Fullerton's message of Tue, 28 Apr 1998 14:38:21 -0400
References: <19980428143821.R9171@samurai.com>

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:
Indexed By Date Previous: Re: Majordomo2-alpha1 install problem
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: Majordomo2-alpha1 install problem
From: Bryan Fullerton <bryanf@samurai.com>
Indexed By Thread Previous: Re: Majordomo2-alpha1 install problem
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: Majordomo2-alpha1 install problem
From: Bryan Fullerton <bryanf@samurai.com>

Google
 
Search Internet Search www.greatcircle.com