Skip to content

Commit 987ec8f

Browse files
author
dlglin
committed
Change references to global.conf in the comments to refer to site.conf or defaults.config as appropriate
All references to global.conf in comments within webwork2/ have been changed to point to the appropriate replacement file.
1 parent 7ff7031 commit 987ec8f

31 files changed

+72
-81
lines changed

bin/NPL-update

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# 1) The NPL downloaded to your machine (the .pg files)
1010
# 2) The environment variable WEBWORK_ROOT needs to be
1111
# correctly defined (as with other scripts here).
12-
# 3) Configuration for the NPL in global.conf needs to be
13-
# done (basically just setting the path to the NPL files.
12+
# 3) Configuration for the NPL in site.conf needs to be
13+
# done (basically just setting the path to the NPL files).
1414

1515
#use strict;
1616
use File::Find;
@@ -311,7 +311,7 @@ if(open(IN, "$libraryRoot/Textbooks")) {
311311
close(IN);
312312
} else{
313313
print "Textbooks file was not found in library $libraryRoot. If the path to the problem library doesn't seem
314-
correct, make modifications in webwork2/conf/global.conf (\$problemLibrary{root}). If that is correct then
314+
correct, make modifications in webwork2/conf/site.conf (\$problemLibrary{root}). If that is correct then
315315
updating from cvs should download the Textbooks file.\n";
316316
}
317317

bin/addcourse

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ be granted professor privileges.
3636
=item B<--db-layout>=I<LAYOUT>
3737
3838
The specified database layout will be used in place of the default specified in
39-
F<global.conf>.
39+
F<defaults.config>.
4040
4141
=item B<--users>=I<FILE>
4242
@@ -98,18 +98,18 @@ eval "use lib '$webwork_dir/lib'"; die $@ if $@;
9898
eval "use WeBWorK::CourseEnvironment"; die $@ if $@;
9999

100100
#################################################################
101-
# The folloinwg code reads global.conf and extracts the remaining configuration
101+
# The folloinwg code reads defaults.config and extracts the remaining configuration
102102
# variables. There is no need to modify it.
103103
#################################################################
104104

105105
# link to WeBWorK code libraries
106106
eval "use lib '$webwork_dir/lib'"; die $@ if $@;
107107
eval "use WeBWorK::CourseEnvironment"; die $@ if $@;
108108

109-
# grab course environment (by reading webwork2/conf/global.conf)
109+
# grab course environment (by reading webwork2/conf/defaults.config)
110110
my $ce = new WeBWorK::CourseEnvironment({ webwork_dir => $webwork_dir });
111111

112-
# set important configuration variables (from global.conf)
112+
# set important configuration variables (from defaults.config)
113113

114114
my $webwork_url = $ce->{webwork_url}; # e.g. /webwork2
115115
my $pg_dir = $ce->{pg_dir}; # e.g. /opt/webwork/pg
@@ -119,7 +119,7 @@ my $pg_dir = $ce->{pg_dir}; # e.g. /opt/webwork/pg
119119
#################################################################
120120
print "addcourse: WeBWorK server is starting\n";
121121
print "addcourse: WeBWorK root directory set to $webwork_dir in webwork2/conf/webwork.apache2-config\n";
122-
print "addcourse: The following locations and urls are set in webwork2/conf/global.conf\n";
122+
print "addcourse: The following locations and urls are set in webwork2/conf/site.conf\n";
123123
print "addcourse: PG root directory set to $pg_dir\n";
124124
print "addcourse: WeBWorK server userID is ", $ce->{server_userID}, "\n";
125125
print "addcourse: WeBWorK server groupID is ", $ce->{server_groupID}, "\n";
@@ -192,7 +192,7 @@ $ce = WeBWorK::CourseEnvironment->new({
192192

193193
if ($dbLayout) {
194194
die "Database layout $dbLayout does not exist in the course environment.",
195-
" (It must be defined in global.conf.)\n"
195+
" (It must be defined in defaults.config.)\n"
196196
unless exists $ce->{dbLayouts}->{$dbLayout};
197197
} else {
198198
# use default value

bin/delcourse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Specifies the password to use when connecting to the SQL server.
6565
6666
Specifies the name of the database to delete. (This is usually
6767
"webwork_COURSENAME", but can be overridden by changing the database layout in
68-
F<global.conf>.)
68+
F<localOverrides.conf>.)
6969
7070
=back
7171

bin/wwapache2ctl.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ WEBWORKROOT=$HOME/webwork2
3838

3939
# Change these only if you need to customize the locations
4040
PID=$WEBWORKROOT/logs/httpd2.pid
41-
CONFIG_GLOBAL=$WEBWORKROOT/conf/global.conf
41+
CONFIG_GLOBAL=$WEBWORKROOT/conf/defaults.conf
4242
CONFIG_DATABASE=$WEBWORKROOT/conf/database.conf
4343
CONFIG_DEVEL=$WEBWORKROOT/conf/devel.apache2-config
4444
CONFIG_DEVEL_SITE=$WEBWORKROOT/conf/devel-site.apache2-config

bin/wwapachectl.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ WEBWORKROOT=$HOME/webwork2
3838

3939
# Change these only if you need to customize the locations
4040
PID=$WEBWORKROOT/logs/httpd.pid
41-
CONFIG_GLOBAL=$WEBWORKROOT/conf/global.conf
41+
CONFIG_GLOBAL=$WEBWORKROOT/conf/defaults.config
4242
CONFIG_DATABASE=$WEBWORKROOT/conf/database.conf
4343
CONFIG_DEVEL=$WEBWORKROOT/conf/devel.apache-config
4444
CONFIG_DEVEL_SITE=$WEBWORKROOT/conf/devel-site.apache-config

conf/README

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,26 @@
1-
Use the prelocal.conf and postlocal.conf files to make modifications.
1+
Use the site.conf and localOverrides.conf files to make modifications.
22

3-
The prelocal.conf file is read before the global.conf.dist file is processed. Non-local variables in this file
4-
are then available for use in global.conf.dist.
3+
site.conf contains global variables which are required for basic configuration.
4+
defaults.config contains initial settings for many customizable options in WeBWorK. Do not edit defaults.config! It will be overridden next time you upgrade.
55

6-
The postlocal.conf file is read after the global.conf.dist file is processed and will overright configurations in global.conf.dist
6+
The localOverrides.conf file is read after the defaults.config file is processed and will overwrite configurations in defaults.config. Use this file to make changes to the settings in defaults.config, as it will be left alone when you upgrade.
77

88
This new configuration system should greatly simplify the process of
99
updating webwork2 since it is less likely
1010
that one will need to modify the config files when upgrading. Default configurations or permissions for
11-
new features will be defined in global.conf.dist and will allow automatic upgrades.
12-
13-
Overrides for these new features can be added later to postlocal.conf
11+
new features will be defined in defaults.config and will allow automatic upgrades. You can override these at any point from localOverrides.conf.
1412

1513
FIRST TIME RECONFIGURATION
1614

17-
COPY prelocal.conf.dist to prelocal.conf.
18-
COPY postlocal.conf.dist to postlocal.conf.
15+
COPY site.conf.dist to site.conf.
16+
COPY localOverrides.conf.dist to localOverrides.conf.
1917

20-
MODIFY prelocal.conf using the data from your global.conf file.
18+
MODIFY site.conf using the data from your global.conf file for the entries contained within site.conf.
2119
In particular you will need to fill in the server name, the
2220
password for the database and any modifications you have made as to the
23-
location of the temporary files directory. Notice that the location of the temporary files directory
24-
is used to define several other related subdirectories, so this modification needs to be made
25-
in prelocal.conf BEFORE the standard global.conf.dist file is read.
21+
locations of various directories.
2622

27-
RENAME global.conf to global.save in order to make sure that the global.conf.dist is read.
28-
Otherwise the global.conf file will be read instead of global.conf.dist and the behavior will be
29-
as with the old system.
23+
UPDATE localOverrides.conf to reflect any local customizations that you had made to global.conf.
3024

31-
INSPECT and possibly modify postlocal.conf to add any further local modifications that you had
32-
made to your global.conf file.
3325

3426

conf/authen_LTI.conf.dist

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#############################################################################
44
# authen_LTI.conf
55
# Configuration for using LTI authentication.
6+
# To enable this file, uncomment the appropriate lines in localOverrides.conf
67
#############################################################################
78

89
# This first section enables LTI authentication. To enable failover to another
@@ -36,11 +37,9 @@ $authen{user_module} = [
3637

3738

3839
################################################################################
39-
# LTI Basic Authentication Parameters for global.conf
40+
# LTI Basic Authentication Parameters
4041
################################################################################
4142

42-
# The following parameters should be in global.conf:
43-
4443
################################################################################
4544
# Reasonable Number of Problems for Late Adds to do per day to catch up
4645
################################################################################

conf/database.conf.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ database.conf - define standard database layouts
2121
2222
=head1 SYNOPSIS
2323
24-
In global.conf:
24+
In defaults.config:
2525
2626
include "conf/database.conf";
2727
*dbLayout = $dbLayouts{layoutName};
@@ -34,7 +34,7 @@ used by WeBWorK. For more information on the format of a database layout,
3434
consult the documentation for the WeBWorK::DB module.
3535
3636
A database layout is selected from the list of possible layouts by adding a
37-
line like the one below to the F<global.conf> or F<course.conf> file.
37+
line like the one below to the F<localOverrides.conf> or F<course.conf> file.
3838
3939
$dbLayoutName = "layoutName";
4040
*dbLayout = $dbLayouts{$dbLayoutName};

conf/defaults.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
################################################################################
33
# WeBWorK Online Homework Delivery System
44
# Copyright © 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
5-
# $CVSHeader: webwork2/conf/global.conf.dist,v 1.225 2010/05/18 18:03:31 apizer Exp $
5+
# $CVSHeader: webwork2/conf/defaults.config,v 1.225 2010/05/18 18:03:31 apizer Exp $
66
#
77
# This program is free software; you can redistribute it and/or modify it under
88
# the terms of either: (a) the GNU General Public License as published by the

conf/localOverrides.conf.dist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
################################################################################
33
# WeBWorK Online Homework Delivery System
44
# Copyright © 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
5-
# $CVSHeader: webwork2/conf/global.conf.dist,v 1.225 2010/05/18 18:03:31 apizer Exp $
5+
# $CVSHeader: webwork2/conf/localOverrides.conf.dist,v 1.225 2010/05/18 18:03:31 apizer Exp $
66
#
77
# This program is free software; you can redistribute it and/or modify it under
88
# the terms of either: (a) the GNU General Public License as published by the
@@ -174,7 +174,7 @@ $pg{displayModes} = [
174174
$pg{options}{displayMode} = "images";
175175

176176
################################################################################
177-
# Adding to the macro file search path. (Check with entries in global.conf before overriding)
177+
# Adding to the macro file search path. (Check with entries in defaults.config before overriding)
178178
################################################################################
179179
# The list of directories searched by loadMacros() when it looks for a .pl file
180180
# is defined in defaults.config.
@@ -227,7 +227,7 @@ $problemDefaults{max_attempts} = -1;
227227
# Temporary hack for displaying the different versions of the editors
228228
################################################################################
229229
# These configurations can be placed in course.conf file to tune the behavior for individual courses
230-
# The items below can be used to override the settings in global.conf.dist
230+
# The items below can be used to override the settings in defaults.config
231231
# One can also use $showeditors{classlisteditor1}=0; to override
232232
# %showeditors = (
233233
# classlisteditor1 => 1,
@@ -249,7 +249,7 @@ $problemDefaults{max_attempts} = -1;
249249
# Directory for temporary files
250250
################################################################################
251251
# Location of web-accessible temporary files, such as equation images.
252-
# Default which is set in global.conf.dist:
252+
# Default which is set in defaults.config:
253253
#$webworkDirs{htdocs_temp} = "$webworkDirs{htdocs}/tmp";
254254
#$webworkURLs{htdocs_temp} = "$webworkURLs{htdocs}/tmp";
255255

0 commit comments

Comments
 (0)