[LON-CAPA-cvs] cvs: loncom /build add_domain_coordinator_privilege.pl make_domain_coordinator.pl
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 03 Jan 2008 21:16:16 -0000
raeburn Thu Jan 3 16:16:16 2008 EDT
Modified files:
/loncom/build make_domain_coordinator.pl
add_domain_coordinator_privilege.pl
Log:
Set www as owner of nohist_domainprefs.pm, in case it had to be created when adding a user from the command line.
Index: loncom/build/make_domain_coordinator.pl
diff -u loncom/build/make_domain_coordinator.pl:1.13 loncom/build/make_domain_coordinator.pl:1.14
--- loncom/build/make_domain_coordinator.pl:1.13 Mon Dec 31 11:52:26 2007
+++ loncom/build/make_domain_coordinator.pl Thu Jan 3 16:16:11 2008
@@ -11,7 +11,7 @@
# The LearningOnline Network
# make_domain_coordinator.pl - Make a domain coordinator on a system
#
-# $Id: make_domain_coordinator.pl,v 1.13 2007/12/31 16:52:26 raeburn Exp $
+# $Id: make_domain_coordinator.pl,v 1.14 2008/01/03 21:16:11 raeburn Exp $
#
# This file is part of the LearningOnline Network with CAPA (LON-CAPA).
#
@@ -400,6 +400,9 @@
$domrolesref->{$domkey}= &LONCAPA::escape('0:'.$now);
&LONCAPA::locking_hash_untie($domrolesref);
+ system('/bin/chown',"www:www","$dompath/nohist_domainroles.db"); # Must be writeable by httpd process.
+ system('/bin/chown',"www:www","$dompath/nohist_domainroles.db.lock");
+
#Update allusers MySQL table
print "Adding new user to allusers table\n";
Index: loncom/build/add_domain_coordinator_privilege.pl
diff -u loncom/build/add_domain_coordinator_privilege.pl:1.3 loncom/build/add_domain_coordinator_privilege.pl:1.4
--- loncom/build/add_domain_coordinator_privilege.pl:1.3 Mon Dec 31 11:49:23 2007
+++ loncom/build/add_domain_coordinator_privilege.pl Thu Jan 3 16:16:11 2008
@@ -14,7 +14,7 @@
# add_domain_coordinator_privilege.pl - Add domain coordinator to an
# exisiting user on a LON-CAPA system.
#
-# $Id: add_domain_coordinator_privilege.pl,v 1.3 2007/12/31 16:49:23 raeburn Exp $
+# $Id: add_domain_coordinator_privilege.pl,v 1.4 2008/01/03 21:16:11 raeburn Exp $
#
# This file is part of the LearningOnline Network with CAPA (LON-CAPA).
#
@@ -207,6 +207,9 @@
$domrolesref->{$domkey}= &LONCAPA::escape('0:'.$now);
&LONCAPA::locking_hash_untie($domrolesref);
+ system('/bin/chown',"www:www","$dompath/nohist_domainroles.db"); # Must be writeable by httpd process.
+ system('/bin/chown',"www:www","$dompath/nohist_domainroles.db.lock");
+
=pod
=item 2.