[LON-CAPA-cvs] cvs: loncom /metadata_database searchcat.pl
www
lon-capa-cvs@mail.lon-capa.org
Sat, 04 Jan 2003 15:04:13 -0000
www Sat Jan 4 10:04:13 2003 EDT
Modified files:
/loncom/metadata_database searchcat.pl
Log:
Bug #1111
searchcat.pl is apparently running as "root" and changed ownership on
nohist_resevaldata.db to "root". Need to make "www" owner of that file.
This should go into 0.6.1
Index: loncom/metadata_database/searchcat.pl
diff -u loncom/metadata_database/searchcat.pl:1.25 loncom/metadata_database/searchcat.pl:1.26
--- loncom/metadata_database/searchcat.pl:1.25 Mon Nov 18 15:44:15 2002
+++ loncom/metadata_database/searchcat.pl Sat Jan 4 10:04:12 2003
@@ -2,7 +2,7 @@
# The LearningOnline Network
# searchcat.pl "Search Catalog" batch script
#
-# $Id: searchcat.pl,v 1.25 2002/11/18 20:44:15 www Exp $
+# $Id: searchcat.pl,v 1.26 2003/01/04 15:04:12 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -251,6 +251,7 @@
# -------------------------------------------------- Copy over the new db-files
system('mv '.$prodir.'/nohist_new_resevaldata.db '.
$prodir.'/nohist_resevaldata.db');
+ system('chown www:www '.$prodir.'/nohist_resevaldata.db');
}
# --------------------------------------------------- Close database connection
$dbh->disconnect;