[LON-CAPA-cvs] cvs: loncom /debugging_tools seed_accesscount.pl

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 13 Jan 2004 18:13:34 -0000


matthew		Tue Jan 13 13:13:34 2004 EDT

  Modified files:              
    /loncom/debugging_tools	seed_accesscount.pl 
  Log:
  Ensure www is owner of files when we are done with them.
  
  
Index: loncom/debugging_tools/seed_accesscount.pl
diff -u loncom/debugging_tools/seed_accesscount.pl:1.3 loncom/debugging_tools/seed_accesscount.pl:1.4
--- loncom/debugging_tools/seed_accesscount.pl:1.3	Thu Dec  4 08:40:29 2003
+++ loncom/debugging_tools/seed_accesscount.pl	Tue Jan 13 13:13:34 2004
@@ -2,7 +2,7 @@
 #
 # The LearningOnline Network
 #
-# $Id: seed_accesscount.pl,v 1.3 2003/12/04 13:40:29 matthew Exp $
+# $Id: seed_accesscount.pl,v 1.4 2004/01/13 18:13:34 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -89,6 +89,7 @@
     #
     untie %accessDB;    
     untie %resevalDB;
+    system("chown www:www $accessDBname");
     # remove the keys we saved.
     next if (! scalar(@Keys)); # skip it if we did not get anything...
     my $dbptr;
@@ -102,6 +103,7 @@
     $dbptr->reorganize();
     $dbptr = undef;
     untie(%resevalDB);
+    system("chown www:www $resDBname");
 }
 exit;