addcourse - add a course
addcourse [options] COURSEID
Add a course to the courses directory. The required directories will be created. Optionally, a database can be populated with users. Also, one or more users can be granted professor privileges.
The specified database layout will be used in place of the default specified in global.conf.
If --db-layout is set to gdbm, the following options are valid:
Specifies that the user ID of the global user will be USERID, overriding the
value set in database.conf. Applicable only to courses using the gdbm
database layout.
If --db-layout is set to sql, the following options are valid:
Specifies the hostname of the SQL server on which to create the course database. If not specified, the default for your RDBMS will be used.
Specifies the port of the SQL server on which to create the course database. If not specified, the default for your RDBMS will be used.
Specifies the username to use when connecting to the SQL server to create the course database. This user must have CREATE, DELETE, FILE, INSERT, SELECT, and UPDATE privileges, WITH GRANT OPTION.
Specifies the password to use when connecting to the SQL server.
Specifies the name of the database to create. (This is usually ``webwork_COURSENAME'', but can be overridden by changing the database layout in global.conf.)
Specifies the host from which the webwork database users will be allowed to connect. (if --sql-host is set to localhost, this should be set to localhost too.)
The users listed in the comma-separated text file FILE will be added to the user list of the new course. The format of this file is the same as user lists exported from WeBWorK.
Each USERID, if it is present in the new course's user list, will be granted professor privileges (i.e. a permission level of 10). Requires --users.
If specified, the contents of the specified course's templates directory are used to populate the new course's templates directory.
The name of the course to create.
Written by Sam Hathaway, hathaway at users.sourceforge.net.